Features

Lightweight. Only pay for what you use. wasm-bindgen only generates
bindings and glue for the JavaScript imports you actually use and Rust
functionality that you export. For example, importing and using the
document.querySelector method doesn't cause Node.prototype.appendChild or
window.alert to be included in the bindings as well.

Designed with the "host bindings" proposal in mind.
Eventually, there won't be any JavaScript shims between Rust-generated wasm
functions and native DOM methods. Because the wasm functions are statically
type checked, some of those native methods' dynamic type checks should become
unnecessary, promising to unlock even-faster-than-JavaScript DOM access.

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted
for inclusion in this project by you, as defined in the Apache-2.0 license,
shall be dual licensed as above, without any additional terms or conditions.