| 1 | [package] |
| 2 | authors = ["The wasm-bindgen Developers" ] |
| 3 | categories = ["wasm" ] |
| 4 | description = "" " |
| 5 | Bindings for all JS global objects and functions in all JS environments like |
| 6 | Node.js and browsers, built on `#[wasm_bindgen]` using the `wasm-bindgen` crate. |
| 7 | " "" |
| 8 | documentation = "https://docs.rs/js-sys" |
| 9 | edition = "2021" |
| 10 | homepage = "https://rustwasm.github.io/wasm-bindgen/" |
| 11 | include = ["/LICENSE-*" , "/src" ] |
| 12 | license = "MIT OR Apache-2.0" |
| 13 | name = "js-sys" |
| 14 | readme = "./README.md" |
| 15 | repository = "https://github.com/rustwasm/wasm-bindgen/tree/master/crates/js-sys" |
| 16 | rust-version = "1.57" |
| 17 | version = "0.3.77" |
| 18 | |
| 19 | [lib] |
| 20 | doctest = false |
| 21 | test = false |
| 22 | |
| 23 | [features] |
| 24 | default = ["std" ] |
| 25 | std = ["wasm-bindgen/std" ] |
| 26 | |
| 27 | [dependencies] |
| 28 | once_cell = { version = "1.12" , default-features = false } |
| 29 | wasm-bindgen = { path = "../.." , version = "=0.2.100" , default-features = false } |
| 30 | |
| 31 | [target.'cfg(target_arch = "wasm32")'.dev-dependencies] |
| 32 | wasm-bindgen-futures = { path = '../futures' } |
| 33 | wasm-bindgen-test = { path = '../test' } |
| 34 | web-sys = { path = "../web-sys" , features = ["Headers" , "Response" , "ResponseInit" ] } |
| 35 | |
| 36 | [lints.rust] |
| 37 | unexpected_cfgs = { level = "warn" , check-cfg = ['cfg(js_sys_unstable_apis)' ] } |
| 38 | |
| 39 | [lints.clippy] |
| 40 | large_enum_variant = "allow" |
| 41 | new_without_default = "allow" |
| 42 | overly_complex_bool_expr = "allow" |
| 43 | too_many_arguments = "allow" |
| 44 | type_complexity = "allow" |
| 45 | |