wasm-bindgen-futures is used for bridging the gap between a JavaScript Promise and Rust Future.
The Cargo.toml below specified the dependency on the wasm-bindgen-futures crate.
Cargo.toml
.
.
.
[dependencies]
wasm-bindgen-futures = "0.4.7"
.
.
.