1[package]
2name = "wasm-bindgen"
3version = "0.2.92"
4authors = ["The wasm-bindgen Developers"]
5license = "MIT OR Apache-2.0"
6readme = "README.md"
7categories = ["wasm"]
8repository = "https://github.com/rustwasm/wasm-bindgen"
9homepage = "https://rustwasm.github.io/"
10documentation = "https://docs.rs/wasm-bindgen"
11description = """
12Easy support for interacting between JS and Rust.
13"""
14edition = "2018"
15rust-version = "1.57"
16
17[package.metadata.docs.rs]
18features = ["serde-serialize"]
19
20[lib]
21test = false
22
23[features]
24default = ["spans", "std"]
25spans = ["wasm-bindgen-macro/spans"]
26std = []
27serde-serialize = ["serde", "serde_json", "std"]
28enable-interning = ["std"]
29
30# Whether or not the `#[wasm_bindgen]` macro is strict and generates an error on
31# all unused attributes
32strict-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
36gg-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!
40xxx_debug_only_print_generated_code = [
41 "wasm-bindgen-macro/xxx_debug_only_print_generated_code",
42]
43
44[dependencies]
45wasm-bindgen-macro = { path = "crates/macro", version = "=0.2.92" }
46serde = { version = "1.0", optional = true }
47serde_json = { version = "1.0", optional = true }
48cfg-if = "1.0.0"
49
50[target.'cfg(target_arch = "wasm32")'.dev-dependencies]
51js-sys = { path = 'crates/js-sys', version = '0.3.69' }
52wasm-bindgen-test = { path = 'crates/test', version = '=0.3.42' }
53wasm-bindgen-futures = { path = 'crates/futures', version = '=0.4.42' }
54serde_derive = "1.0"
55wasm-bindgen-test-crate-a = { path = 'tests/crates/a', version = '0.1' }
56wasm-bindgen-test-crate-b = { path = 'tests/crates/b', version = '0.1' }
57
58[workspace]
59members = [
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]
104resolver = "2"
105
106[patch.crates-io]
107wasm-bindgen = { path = '.' }
108wasm-bindgen-futures = { path = 'crates/futures' }
109js-sys = { path = 'crates/js-sys' }
110web-sys = { path = 'crates/web-sys' }
111