Crate features / wasm-bindgen
Feature flags · wasm-bindgen 0.2.129 · from crates.io 2026-10-24
wasm-bindgen features: what each one does, and the line to copy
Short answerwasm-bindgen 0.2.129 has 9 features. By default it turns on std; add default-features = false to start from nothing. It needs Rust 1.81 or newer.
Pick features
Every feature
| Feature | In default | Turns on |
|---|---|---|
enable-interning | std | |
gg-alloc | nothing else (a switch the code checks) | |
msrv | nothing else (a switch the code checks) | |
rustversion | nothing else (a switch the code checks) | |
serde-serialize | serde, serde_json, std | |
spans | nothing else (a switch the code checks) | |
std | yes | nothing else (a switch the code checks) |
strict-macro | wasm-bindgen-macro/strict-macro | |
xxx_debug_only_print_generated_code | nothing else (a switch the code checks) |
dep:x turns on the optional dependency x; x/y turns on feature y of dependency x (with ?, only if x is already on).
MSRV history
The minimum Rust version wasm-bindgen declares (rust-version), and the release that changed it:
- 0.2.87 (2023-06-12): Rust 1.56
- 0.2.89 (2023-11-27): Rust 1.57
- 0.2.106 (2025-11-28): Rust 1.71
- 0.2.118 (2026-04-10): Rust 1.77
- 0.2.129 (2026-09-25): Rust 1.81
Stuck on an older compiler? Pin the last version that supports it, for example cargo update -p wasm-bindgen --precise <version>, or use resolver 3, which picks compatible versions for you.
More on wasm-bindgen
Real downloads, dependents and alternatives: wasm-bindgen crate data (1.8M real downloads a day, 5,777 dependents).
docs.rs feature list · crates.io · license MIT OR Apache-2.0 · edition 2021
Up next
Before you depend on itwasm-bindgen crate dataReal downloads, dependents, alternatives.Read it next →Did this answer your question?