This is the unpublished documentation of wasm-bindgen, the published documentation is available on the main Rust and WebAssembly documentation site . Features documented here may not be available in released versions of wasm-bindgen.

Reference

This section contains reference material for using wasm-bindgen. It is not intended to be read start to finish. Instead, it aims to quickly answer questions like:

  • Is type X supported as a parameter in a Rust function exported to JavaScript?

  • What was that CLI flag to disable ECMAScript modules output, and instead attach the JavaScript bindings directly to window?