Cargo Features
[dependencies]
wasm-bindgen = { version = "0.2.106", default-features = false, features = ["std", "enable-interning", "serde-serialize", "spans", "strict-macro", "gg-alloc", "msrv", "xxx_debug_only_print_generated_code"] }
- default = std
-
The
stdfeature is set by default wheneverwasm-bindgenis added withoutsomewhere in the dependency tree.default-features = false - std default enable-interning? serde-serialize?
-
Affects
wasm-bindgen::JsStatic… - enable-interning = std
- serde-serialize = serde, serde_json, std
- spans
- strict-macro
-
Whether or not the
#[wasm_bindgen]macro is strict and generates an error on all unused attributesEnables strict-macro of wasm-bindgen-macro
- gg-alloc
-
INTERNAL ONLY: Enables gg-alloc as system allocator when using wasm-bindgen-test to check that large pointers are handled correctly
- msrv
-
Deprecated crate features
- rustversion xxx_debug_only_print_generated_code
Features from optional dependencies
In crates that don't use the dep: syntax, optional dependencies automatically become Cargo features. These features may have been created by mistake, and this functionality may be removed in the future.