MDN-Rust-Wasm
Setup
cargo install wasm-pack
Build
# In /rust
wasm-pack build --scope <npm_user_name>
Publish
# In /rust/pkg
npm publish --access=public
Run
# In /site
npm run serve
TODO
-
Optimize WASM
: See official guide. -
Deep comparison with Zig in tooling
: See zig-wasm-freestanding.