Skip to content

Glossary: Rust in Practice

wasm-bindgen

Also written: #[wasm_bindgen]

The crate that writes the glue between Rust and JavaScript so functions can pass strings and objects. `#[wasm_bindgen]` exports a function.

Where the book teaches it

Related terms

wasm-packWebAssembly (wasm)JsErrorglue code