Update uniffi to 0.31.2#102
Open
pblazej wants to merge 1 commit into
Open
Conversation
4c9a2a3 to
1853329
Compare
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
1853329 to
daefee5
Compare
pblazej
added a commit
to livekit/rust-sdks
that referenced
this pull request
Jun 26, 2026
The fork's fix/multi-crate-framework branch was rebased onto cargo-swift main as a single commit (open upstream as antoniusnaumann/cargo-swift#101) and no longer carries the uniffi_bindgen 0.31.2 bump — that went to its own PR (antoniusnaumann/cargo-swift#102). Re-pin the swift-xcframework task to the new revision. Without that bindgen bump the generated callback-interface vtables are plain `static let`, which the Swift 6 language mode rejects, so restore `swiftLanguageModes: [.v5]` in the package templates until cargo-swift ships uniffi 0.31.2. Give livekit-datatrack a uniffi.toml setting ffi_module_name = "RustLiveKitDataTrack" so its generated FFI header matches the RustLiveKitUniFFI naming instead of the default livekit_datatrackFFI. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
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
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.
Bumps
uniffi_bindgenfrom0.31.1to0.31.2.The notable change for the Swift backend is
mozilla/uniffi-rs#2886
(swift: nonisolated(unsafe) on callback vtablePtr), shipped in
uniffi 0.31.2
as "Prevent strict concurrency warning with callback interface tables".
Under the Swift 6 language mode a non-isolated
static letof a non-Sendabletype isrejected, so the callback-interface
vtablePtremitted by 0.31.1 only compiles in Swift 5mode. With 0.31.2 it is generated as
nonisolated(unsafe), so packages with callbackinterfaces build cleanly under the Swift 6 language mode without falling back to
swiftLanguageModes: [.v5].