You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Regression: wasm-unstable-single-threaded required for sync-only wasm32 crates in 0.30 #2828
In 0.30, any crate using uniffi on wasm32 fails to compile without wasm-unstable-single-threaded, even when it has no async code. In 0.29 the feature was only needed for async wasm32 code.
STR
Take any sync-only uniffi crate (e.g. the arithmetic example) and build it for wasm32 without the feature:
cargo build --target wasm32-unknown-unknown
Expected: compiles (as in 0.29)
Actual:
error[E0277]: `F` cannot be sent between threads safely
--> uniffi_core-0.30.0/src/ffi/rustfuture/mod.rs:96:42
96 | impl<T, F> UniffiCompatibleFuture<T> for F where F: Future<Output = T> {}
| ^ `F` cannot be sent between threads safely
note: required by a bound in `rustfuture::UniffiCompatibleFuture`
43 | pub trait UniffiCompatibleFuture<T>: Future<Output = T> + Send {}
Activity
Fix wasm32 error
bendk commentedon Feb 24, 2026
Oops, I think I did that one. Can you take a look at the PR and see if makes sense to you?
Fix wasm32 error
Fix wasm32 error
Bump uniffi to 0.30.x (#343)