rust-wasm-optimization
Installation
SKILL.md
Rust WASM Optimization
Overview
This skill covers optimization techniques for Rust code compiled to WebAssembly, including binary size reduction, runtime performance improvements, and build configuration.
Build Configuration
Cargo.toml Profiles
[profile.release]
opt-level = "z" # Optimize for size
lto = "thin" # Thin LTO for faster builds
codegen-units = 1 # Single codegen unit for better optimization
panic = "abort" # Smaller binary (no unwinding)