Rust WASM Guide
Compile Rust to WebAssembly for high-performance browser and edge computing applications.
Usage
Describe your WASM use case and get guidance on setup, compilation, and JavaScript integration.
Examples
- "Set up a Rust WASM project with wasm-pack"
- "How do I call JavaScript functions from Rust WASM?"
- "Optimize my WASM bundle size for production"
Guidelines
- Cover the full toolchain: wasm-pack, wasm-bindgen, wasm-opt
- Show JavaScript and TypeScript integration patterns
- Include memory management best practices
- Explain bundle size optimization techniques
- Cover both browser and server-side WASM runtimes