-
Notifications
You must be signed in to change notification settings - Fork 35
feat(uniffi): fully upgrade to 0.30 #322
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
Larkooo
wants to merge
10
commits into
jhugman:main
Choose a base branch
from
Larkooo:update-uniffi-0.30
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
+537
−116
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Major changes: - Update workspace dependencies to UniFFI 0.30.0 - Replace uniffi_bindgen::backend with uniffi_bindgen::interface - Replace FfiType::RustArcPtr with FfiType::Handle (u64) - Fix toml::value::Value type compatibility - Update templates: takes_self() -> self_type().is_some() - Update C++ type mapping for Handle (void* -> uint64_t) Remaining work: - Fix Method construction (no more MethodMetadata.into()) - Handle new UniffiTrait::Ord variant - Fix Literal type mismatches - Update C++ includes (RustArcPtr.h) - Regenerate fixtures for new trait interface - Run full test suite See UniFFI 0.30 changelog for breaking changes.
- Updated uniffi, uniffi_bindgen, uniffi_meta dependencies to 0.30.0 - Fixed uniffi_bindgen::backend -> uniffi_bindgen::interface migration - Replaced FfiType::RustArcPtr with FfiType::Handle (u64 handles) - Updated Callable.takes_self() -> Callable.self_type().is_some() - Fixed toml dependency version conflicts - Added UniffiTrait::Ord pattern match - Updated FfiFunction construction for private fields - Fixed DefaultValueMetadata handling in render_literal - Updated C++ and TypeScript FFI type mappings for u64 handles
- Removed duplicate Handle pattern matches in gen_rust/mod.rs - Fixed toml::value::Value import path consistency - Cleaned up unreachable pattern warnings
zzorba
reviewed
Oct 29, 2025
Owner
|
@Larkooo Wow, thank you so much. I was/am rather dreading this upgrade. Is there anything you need from me while you chug through this? I have enabled this PR to run on CI in the mean time. |
9 tasks
Author
|
Nope all good, will try to get this ready. |
- Fix callback functions to return correct types (uint64_t for clone callbacks) - Fix lambda return type declarations to match callback signatures - Add proper return value handling when rsLambda is null - Fix free functions to pass uint64_t directly instead of void* cast - Add makeCallbackFunction support for ForeignFuture callbacks Fixes three UniFFI 0.30 C++ codegen issues: 1. Callback return type mismatch (void vs uint64_t) 2. Missing ForeignFutureDroppedCallback namespace 3. Free function wrong signature (void* vs uint64_t)
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
No description provided.