1[package]
2authors = ["The wasm-bindgen Developers"]
3description = "Bridging the gap between Rust Futures and JavaScript Promises"
4documentation = "https://docs.rs/wasm-bindgen-futures"
5edition = "2021"
6homepage = "https://rustwasm.github.io/wasm-bindgen/"
7include = ["/LICENSE-*", "/src"]
8license = "MIT OR Apache-2.0"
9name = "wasm-bindgen-futures"
10readme = "./README.md"
11repository = "https://github.com/rustwasm/wasm-bindgen/tree/master/crates/futures"
12rust-version = "1.57"
13version = "0.4.50"
14
15[package.metadata.docs.rs]
16all-features = true
17rustdoc-args = ["--cfg", "docsrs"]
18
19[dependencies]
20cfg-if = "1.0.0"
21futures-core = { version = '0.3.8', default-features = false, optional = true }
22js-sys = { path = "../js-sys", version = '=0.3.77', default-features = false }
23once_cell = { version = "1.12", default-features = false }
24wasm-bindgen = { path = "../..", version = '=0.2.100', default-features = false }
25
26[features]
27default = ["std"]
28futures-core-03-stream = ['futures-core']
29std = ["wasm-bindgen/std", "js-sys/std", "web-sys/std"]
30
31[target.'cfg(target_feature = "atomics")'.dependencies]
32web-sys = { path = "../web-sys", version = "=0.3.77", default-features = false, features = [
33 "MessageEvent",
34 "Worker",
35] }
36
37[target.'cfg(target_arch = "wasm32")'.dev-dependencies]
38futures-channel = "0.3"
39futures-lite = { version = "2", default-features = false }
40wasm-bindgen-test = { path = '../test' }
41
42[lints]
43workspace = true
44