wasm-bindgen-futures (0.4.64)
Published 2026-03-26 10:36:22 +00:00 by siennathesane
Installation
[registry]
default = "gitea"
[registries.gitea]
index = "sparse+ " # Sparse index
# index = " " # Git
[net]
git-fetch-with-cli = truecargo add wasm-bindgen-futures@0.4.64About this package
Bridging the gap between Rust Futures and JavaScript Promises
wasm-bindgen-futures
This crate bridges the gap between a Rust Future and a JavaScript
Promise. It provides two conversions:
- From a JavaScript
Promiseinto a RustFuture. - From a Rust
Futureinto a JavaScriptPromise.
Additionally under the feature flag futures-core-03-stream there is experimental
support for AsyncIterator to Stream conversion.
See the API documentation for more info.
Dependencies
| ID | Version |
|---|---|
| cfg-if | ^1.0.0 |
| futures-core | ^0.3.8 |
| futures-util | ^0.3.31 |
| js-sys | =0.3.91 |
| once_cell | ^1.12 |
| wasm-bindgen | =0.2.114 |
| futures-channel | ^0.3 |
| futures-lite | ^2 |
| web-sys | =0.3.91 |