The official guide from the Rust WebAssembly Working Group — from setup through publishing a crate to npm.
The Rust and WebAssembly book is the canonical tutorial for using Rust with WebAssembly in the browser. Published and maintained by the Rust WebAssembly Working Group, it walks through a complete project — implementing Conway's Game of Life — covering wasm-pack setup, wasm-bindgen usage, JavaScript integration, debugging with browser DevTools, Rust-native profiling, shrinking binary size, and publishing the final package to npm. The book assumes no prior Rust experience but moves quickly to intermediate topics, making it the best single resource for developers who want to go from zero to a production-ready Wasm module.
A hands-on collection of annotated WebAssembly examples written in Rust, AssemblyScript, and WAT.
The one-stop build tool for compiling Rust to WebAssembly and publishing the result as an npm package.
Mozilla's authoritative reference documentation for the WebAssembly JavaScript API and WAT text format.