1 | [package] |
2 | name = "wasm-bindgen" |
3 | version = "0.2.92" |
4 | authors = ["The wasm-bindgen Developers" ] |
5 | license = "MIT OR Apache-2.0" |
6 | readme = "README.md" |
7 | categories = ["wasm" ] |
8 | repository = "https://github.com/rustwasm/wasm-bindgen" |
9 | homepage = "https://rustwasm.github.io/" |
10 | documentation = "https://docs.rs/wasm-bindgen" |
11 | description = "" " |
12 | Easy support for interacting between JS and Rust. |
13 | " "" |
14 | edition = "2018" |
15 | rust-version = "1.57" |
16 | |
17 | [package.metadata.docs.rs] |
18 | features = ["serde-serialize" ] |
19 | |
20 | [lib] |
21 | test = false |
22 | |
23 | [features] |
24 | default = ["spans" , "std" ] |
25 | spans = ["wasm-bindgen-macro/spans" ] |
26 | std = [] |
27 | serde-serialize = ["serde" , "serde_json" , "std" ] |
28 | enable-interning = ["std" ] |
29 | |
30 | # Whether or not the `#[wasm_bindgen]` macro is strict and generates an error on |
31 | # all unused attributes |
32 | strict-macro = ["wasm-bindgen-macro/strict-macro" ] |
33 | |
34 | # Enables gg-alloc as system allocator when using wasm-bindgen-test to check that large pointers |
35 | # are handled correctly |
36 | gg-alloc = ["wasm-bindgen-test/gg-alloc" ] |
37 | |
38 | # This is only for debugging wasm-bindgen! No stability guarantees, so enable |
39 | # this at your own peril! |
40 | xxx_debug_only_print_generated_code = [ |
41 | "wasm-bindgen-macro/xxx_debug_only_print_generated_code" , |
42 | ] |
43 | |
44 | [dependencies] |
45 | wasm-bindgen-macro = { path = "crates/macro" , version = "=0.2.92" } |
46 | serde = { version = "1.0" , optional = true } |
47 | serde_json = { version = "1.0" , optional = true } |
48 | cfg-if = "1.0.0" |
49 | |
50 | [target.'cfg(target_arch = "wasm32")'.dev-dependencies] |
51 | js-sys = { path = 'crates/js-sys' , version = '0.3.69' } |
52 | wasm-bindgen-test = { path = 'crates/test' , version = '=0.3.42' } |
53 | wasm-bindgen-futures = { path = 'crates/futures' , version = '=0.4.42' } |
54 | serde_derive = "1.0" |
55 | wasm-bindgen-test-crate-a = { path = 'tests/crates/a' , version = '0.1' } |
56 | wasm-bindgen-test-crate-b = { path = 'tests/crates/b' , version = '0.1' } |
57 | |
58 | [workspace] |
59 | members = [ |
60 | "benchmarks" , |
61 | "crates/cli" , |
62 | "crates/js-sys" , |
63 | "crates/test" , |
64 | "crates/test/sample" , |
65 | "crates/example-tests" , |
66 | "crates/typescript-tests" , |
67 | "crates/web-sys" , |
68 | "crates/webidl" , |
69 | "crates/webidl-tests" , |
70 | "examples/add" , |
71 | "examples/canvas" , |
72 | "examples/char" , |
73 | "examples/closures" , |
74 | "examples/console_log" , |
75 | "examples/deno" , |
76 | "examples/dom" , |
77 | "examples/duck-typed-interfaces" , |
78 | "examples/fetch" , |
79 | "examples/guide-supported-types-examples" , |
80 | "examples/hello_world" , |
81 | "examples/import_js/crate" , |
82 | "examples/julia_set" , |
83 | "examples/paint" , |
84 | "examples/performance" , |
85 | "examples/raytrace-parallel" , |
86 | "examples/request-animation-frame" , |
87 | "examples/todomvc" , |
88 | "examples/wasm-audio-worklet" , |
89 | "examples/wasm-in-wasm" , |
90 | "examples/wasm-in-wasm-imports" , |
91 | "examples/wasm-in-web-worker" , |
92 | "examples/wasm2js" , |
93 | "examples/weather_report" , |
94 | "examples/webaudio" , |
95 | "examples/webgl" , |
96 | "examples/webrtc_datachannel" , |
97 | "examples/websockets" , |
98 | "examples/webxr" , |
99 | "examples/without-a-bundler" , |
100 | "examples/without-a-bundler-no-modules" , |
101 | "examples/synchronous-instantiation" , |
102 | "tests/no-std" , |
103 | ] |
104 | resolver = "2" |
105 | |
106 | [patch.crates-io] |
107 | wasm-bindgen = { path = '.' } |
108 | wasm-bindgen-futures = { path = 'crates/futures' } |
109 | js-sys = { path = 'crates/js-sys' } |
110 | web-sys = { path = 'crates/web-sys' } |
111 | |