Skip to content

Remove wasm bindgen futures#1001

Open
guybedford wants to merge 5 commits into
mainfrom
remove-wasm-bindgen-futures
Open

Remove wasm bindgen futures#1001
guybedford wants to merge 5 commits into
mainfrom
remove-wasm-bindgen-futures

Conversation

@guybedford
Copy link
Copy Markdown
Collaborator

This removes the use of the wasm-bindgen-futures crate, with the last commit based to #999 and using PR wasm-bindgen/wasm-bindgen#5164.

Update wasm-bindgen submodule to pick up unwind safety enforcement
on #[wasm_bindgen] exports (wasm-bindgen/wasm-bindgen#5128).

Add wasm-streams and gloo as submodules pointing at forks that
propagate unwind safety bounds through closures and timers. Patch
both via [patch.crates-io] so the worker crate compiles against the
new enforcement.

Refactor durable object test fixtures to use Cell wrapped in
AssertUnwindSafe, replacing RefCell. Cell is single-threaded safe
for Copy types because every operation is an atomic move with no
borrow guard to leave dangling; AssertUnwindSafe is the narrow,
honest assertion for the interior mutability fields without making
blanket promises about State/Env.

Add cargo url replacement so transitive git deps fetched via SSH
fall back to HTTPS for cargo generate users.
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.

1 participant