Crate features / js-sys
Feature flags · js-sys 0.3.106 · from crates.io 2026-10-24
js-sys features: what each one does, and the line to copy
Short answerjs-sys 0.3.106 has 3 features. By default it turns on std, unsafe-eval; add default-features = false to start from nothing. It needs Rust 1.81 or newer.
Pick features
Every feature
| Feature | In default | Turns on |
|---|---|---|
futures-core-03-stream | dep:futures-util, dep:futures-core | |
std | yes | wasm-bindgen/std, futures-util/std |
unsafe-eval | yes | 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 js-sys declares (rust-version), and the release that changed it:
- 0.3.64 (2023-06-12): Rust 1.56
- 0.3.65 (2023-11-01): Rust 1.57
- 0.3.83 (2025-11-28): Rust 1.71
- 0.3.95 (2026-04-10): Rust 1.77
- 0.3.106 (2026-09-25): Rust 1.81
Stuck on an older compiler? Pin the last version that supports it, for example cargo update -p js-sys --precise <version>, or use resolver 3, which picks compatible versions for you.
More on js-sys
Real downloads, dependents and alternatives: js-sys crate data (1.6M real downloads a day, 3,511 dependents).
docs.rs feature list · crates.io · license MIT OR Apache-2.0 · edition 2021
Up next
Before you depend on itjs-sys crate dataReal downloads, dependents, alternatives.Read it next →Did this answer your question?