Skip to content

chore: update to uniffi 0.30 - #333

Closed
istankovic wants to merge 10 commits into
jhugman:mainfrom
wireapp:ivan/update-to-uniffi-0.30
Closed

istankovic wants to merge 10 commits into
jhugman:mainfrom
wireapp:ivan/update-to-uniffi-0.30

Conversation

@istankovic

Copy link
Copy Markdown

This PR is heavily based on #322, with some differences:

  • it tries to do the minimum work necessary to move to uniffi 0.30
  • lints are unit tests have been fixed

Unfortunately, JSI and WASM tests still fail and I do not know how to fix them.
In particular, the WASM async callbacks test is failing with

error[E0599]: no method named `into_js` found for struct `NonNull<T>` in the current scope
    --> src/async_callbacks_module.rs:1374:61
     |
1374 | ...                   uniffi_out_dropped_callback.into_js(),
     |                                                   ^^^^^^^
     |
help: there is a method `into` with a similar name
     |
1374 -                                 uniffi_out_dropped_callback.into_js(),
1374 +                                 uniffi_out_dropped_callback.into(),
     |

@istankovic
istankovic marked this pull request as ready for review December 22, 2025 10:04
@jhugman

jhugman commented Jan 5, 2026

Copy link
Copy Markdown
Owner

Hey @istankovic Thanks for diving in!

Let me know if there's anything I can do to help!

@istankovic

Copy link
Copy Markdown
Author

Hey @istankovic Thanks for diving in!

Let me know if there's anything I can do to help!

Essentially there are two problems, that I am completely stuck on:

  1. the issue with WASM callbacks that was mentioned in the description
  2. the JSI issues

I spent quite some time trying to figure out how to fix 1), but eventually gave up. So any help with that would be much appreciated.

Regarding 2), I haven't even looked at those failures in detail.

@SimonThormeyer

Copy link
Copy Markdown
Contributor

@jhugman would it be possible to assist? That'd be great!

@jhugman jhugman mentioned this pull request Feb 24, 2026
9 tasks done
@jhugman jhugman closed this in #343 Feb 27, 2026
SimonThormeyer pushed a commit to wireapp/uniffi-bindgen-react-native that referenced this pull request Mar 2, 2026
Fixes jhugman#316 .

This PR takes inspiration from–but supercedes jhugman#322, jhugman#333 and jhugman#338.

- Fixed test runner `CMakeLists.txt` build to use `hermes/main`.
- ~~Found and filed upstream
mozilla/uniffi-rs#2829.
[Workaround](https://github.com/mozilla/uniffi-rs/blob/main/CHANGELOG.md#%EF%B8%8F-breaking-changes-%EF%B8%8F-2).
- Found and filed upstream
mozilla/uniffi-rs#2828.
- Tests passing for JSI and WASM.

## Changes in [uniffi 0.30
changelog](https://github.com/mozilla/uniffi-rs/blob/main/CHANGELOG.md#%EF%B8%8F-breaking-changes-%EF%B8%8F-2).

- [x] [Implement `UniffiTrait::Ord` in typescript
bindings](mozilla/uniffi-rs#2583)
- [x] [Enums and Records supports uniffi
traits](https://github.com/mozilla/uniffi-rs/pull/2586/changes#diff-525584388b71eb2f5f328ae05791b81b99a6e01a60dc625eec335b2250f9a7b7R332-R336).
    - [x] Flat enums
    - [x] Tagged unions
    - [x] Records
- [x] Handle lifting trait objects coming from Rust: e.g.
[ObjectTemplate.kt](https://github.com/mozilla/uniffi-rs/pull/2586/changes#diff-525584388b71eb2f5f328ae05791b81b99a6e01a60dc625eec335b2250f9a7b7R332-R336)
- [x] CustomTypes for defaults. Test needed to add.
- [x] [CustomTypes as
errors](https://github.com/mozilla/uniffi-rs/pull/2658/changes#diff-12e1c6551f0a758081614fc7d86d90e87b0be4f4b787b677ebdd2809280bbb4f).
- [x] [Interfaces deriving from External
traits](mhammond/uniffi-rs@b54375f#diff-522f0ef157bc0a32453bafd790a9058a35cbb8a721df58a9b51b1ec6b74db5ca)




Closes jhugman#322 
Closes jhugman#333 
Closes jhugman#338
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants