.

Technology

wasm-bindgen

A Rust library and CLI tool: Facilitating high-level, seamless interactions between WebAssembly modules and JavaScript.

wasm-bindgen is the critical bridge for the Rust and WebAssembly ecosystem. This library and command-line tool generates the necessary glue code (bindings) to enable rich communication between Wasm modules and JavaScript (JS). Specifically, it allows you to pass complex types—strings, JS objects, classes, and closures—instead of being limited to primitive integers and floats (u32, f64). You can import JS functionality (e.g., `window.alert`, DOM manipulation) into Rust and export Rust functions or classes for consumption by JS, often including automatic TypeScript binding generation for a cleaner developer experience.

https://rustwasm.github.io/wasm-bindgen/
1 project · 1 city

Related technologies

Recent Talks & Demos

Showing 1-1 of 1

Members-Only

Sign in to see who built these projects