1
1
[package ]
2
- name = " wasm-bindgen"
3
- version = " 0.2.92"
4
2
authors = [" The wasm-bindgen Developers" ]
5
- license = " MIT OR Apache-2.0"
6
- readme = " README.md"
7
3
categories = [" wasm" ]
8
- repository = " https://github.com/rustwasm/wasm-bindgen"
9
- homepage = " https://rustwasm.github.io/"
10
- documentation = " https://docs.rs/wasm-bindgen"
11
4
description = """
12
5
Easy support for interacting between JS and Rust.
13
6
"""
7
+ documentation = " https://docs.rs/wasm-bindgen"
14
8
edition = " 2021"
15
- rust-version = " 1.57 "
9
+ homepage = " https://rustwasm.github.io/ "
16
10
include = [" /build.rs" , " /LICENSE-*" , " /src" ]
11
+ license = " MIT OR Apache-2.0"
12
+ name = " wasm-bindgen"
13
+ readme = " README.md"
14
+ repository = " https://github.com/rustwasm/wasm-bindgen"
15
+ rust-version = " 1.57"
16
+ version = " 0.2.92"
17
17
18
18
[package .metadata .docs .rs ]
19
19
features = [" serde-serialize" ]
@@ -23,10 +23,10 @@ test = false
23
23
24
24
[features ]
25
25
default = [" spans" , " std" ]
26
+ enable-interning = [" std" ]
27
+ serde-serialize = [" serde" , " serde_json" , " std" ]
26
28
spans = [" wasm-bindgen-macro/spans" ]
27
29
std = []
28
- serde-serialize = [" serde" , " serde_json" , " std" ]
29
- enable-interning = [" std" ]
30
30
31
31
# Whether or not the `#[wasm_bindgen]` macro is strict and generates an error on
32
32
# all unused attributes
@@ -38,31 +38,28 @@ gg-alloc = ["wasm-bindgen-test/gg-alloc"]
38
38
39
39
# This is only for debugging wasm-bindgen! No stability guarantees, so enable
40
40
# this at your own peril!
41
- xxx_debug_only_print_generated_code = [
42
- " wasm-bindgen-macro/xxx_debug_only_print_generated_code" ,
43
- ]
41
+ xxx_debug_only_print_generated_code = [" wasm-bindgen-macro/xxx_debug_only_print_generated_code" ]
44
42
45
43
[dependencies ]
44
+ cfg-if = " 1.0.0"
46
45
once_cell = " 1.12"
47
- wasm-bindgen-macro = { path = " crates/macro" , version = " =0.2.92" }
48
46
serde = { version = " 1.0" , optional = true }
49
47
serde_json = { version = " 1.0" , optional = true }
50
- cfg-if = " 1.0.0 "
48
+ wasm-bindgen-macro = { path = " crates/macro " , version = " =0.2.92 " }
51
49
52
50
[target .'cfg(target_arch = "wasm32")' .dev-dependencies ]
53
51
js-sys = { path = ' crates/js-sys' }
54
- wasm-bindgen-test = { path = ' crates/test' }
55
- wasm-bindgen-futures = { path = ' crates/futures' }
56
52
serde_derive = " 1.0"
53
+ wasm-bindgen-futures = { path = ' crates/futures' }
54
+ wasm-bindgen-test = { path = ' crates/test' }
57
55
wasm-bindgen-test-crate-a = { path = ' tests/crates/a' }
58
56
wasm-bindgen-test-crate-b = { path = ' tests/crates/b' }
59
57
60
58
[lints .rust ]
61
- unexpected_cfgs = { level = " warn" , check-cfg = [
62
- ' cfg(wasm_bindgen_unstable_test_coverage)' ,
63
- ] }
59
+ unexpected_cfgs = { level = " warn" , check-cfg = [' cfg(wasm_bindgen_unstable_test_coverage)' ] }
64
60
65
61
[workspace ]
62
+ exclude = [" crates/msrv" ]
66
63
members = [
67
64
" benchmarks" ,
68
65
" crates/cli" ,
@@ -108,11 +105,10 @@ members = [
108
105
" examples/synchronous-instantiation" ,
109
106
" tests/no-std" ,
110
107
]
111
- exclude = [" crates/msrv" ]
112
108
resolver = " 2"
113
109
114
110
[patch .crates-io ]
111
+ js-sys = { path = ' crates/js-sys' }
115
112
wasm-bindgen = { path = ' .' }
116
113
wasm-bindgen-futures = { path = ' crates/futures' }
117
- js-sys = { path = ' crates/js-sys' }
118
114
web-sys = { path = ' crates/web-sys' }
0 commit comments