Package Info

wasm-bindgen


Facilitating high-level interactions between Wasm modules and JavaScript


Unspecified

Facilitating high-level interactions between Wasm modules and JavaScript.

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.
  • ECMAScript modules. Just import WebAssembly modules the same way you would import JavaScript modules. Future compatible with WebAssembly modules and ECMAScript modules integration.
  • Designed with the "Web IDL 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.

License: Apache-2.0 OR MIT
URL: https://github.com/rustwasm/wasm-bindgen

Categories

Releases

Package Version Update ID Released Package Hub Version Platforms Subpackages
0.2.97~0-bp160.1.13 info GA Release 2025-01-08 16.0
  • x86-64
  • wasm-bindgen