rust-wasm
Installation
SKILL.md
Rust & WebAssembly
Based on the Rust and WebAssembly book, the wasm-bindgen guide, and wasm-pack documentation.
When to Use This Skill
- Compiling Rust to
.wasmfor the browser - Interoperating with JavaScript (functions, objects, strings)
- Using DOM APIs from Rust via
web-sys - Publishing Rust-WASM packages to npm
- Optimizing
.wasmbinary size - Debugging and profiling WASM modules
Quick Start
# Install tooling
rustup target add wasm32-unknown-unknown
cargo install wasm-pack