[tracking] browser WASM support
Open
api design
enhancement
- Dominant language
- Rust
- Stars
- 4.1k
- Forks
- 339
- PR merge metrics
- No merged PRs in 30d
Description
It'd be cool if `async-std` worked in the browser out of the box. Not everything can be supported, but we *can* support a smaller subset.
## Tasks
- [x] no longer fail compilation under the `--target wasm32-unknown-unknown` target
- [x] make `task::spawn` work (use [`wasm_bindgen_futures::spawn_local`](https://docs.rs/wasm-bindgen-futures/0.3.27/wasm_bindgen_futures/fn.spawn_local.html))
- [ ] expose `stream`
- [ ] expose `task::sleep`
- [ ] patch `async-attributes` to allow `async fn main` to work
## References
- https://docs.rs/wasm-bindgen-futures/0.3.27/wasm_bindgen_futures/
- https://github.com/rustasync/runtime/issues/7
Contributor guide
Assessment
This issue has not been assessed yet.