Skip to content

Fix wasm32 error - #2830

Merged
bendk merged 1 commit into
mozilla:mainfrom
bendk:push-pxpooxskkozw
Feb 25, 2026
Merged

bendk merged 1 commit into
mozilla:mainfrom
bendk:push-pxpooxskkozw

Conversation

@bendk

@bendk bendk commented Feb 24, 2026

Copy link
Copy Markdown
Contributor

The lack of this trait bound made it so uniffi-core failed to build on wasm32-unknown-unknown which made it so any crate that dependened on UniFFI also failed. This happened even when the crates didn't export async functions.

Fixes #2828

@bendk
bendk requested a review from a team as a code owner February 24, 2026 21:59
@bendk
bendk requested review from mhammond and removed request for a team February 24, 2026 21:59
The lack of this trait bound made it so uniffi-core failed to build on
`wasm32-unknown-unknown` which made it so any crate that dependened on
UniFFI also failed.  This happened even when the crates didn't export
async functions.

Refactored the `rustfuture/mod.rs` code so there's 2 cases: wasm32 + the
`wasm-unstable-single-threaded` feature and every other configuration.

Fixes mozilla#2828
@bendk
bendk force-pushed the push-pxpooxskkozw branch from 9b4480c to 7308314 Compare February 25, 2026 14:24
@bendk
bendk merged commit cdfffa9 into mozilla:main Feb 25, 2026
@bendk
bendk deleted the push-pxpooxskkozw branch February 25, 2026 14:58
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.

Regression: wasm-unstable-single-threaded required for sync-only wasm32 crates in 0.30

2 participants