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