wasm-pack

Build and package Rust WebAssembly projects for npm

brewmacoslinux
Try with needOr install directly
Source

About

Your favorite rust -> wasm workflow tool!

Commands

wasm-pack

Examples

Initialize and build a new Rust WebAssembly project$ wasm-pack build
Build and publish your wasm package to npm$ wasm-pack publish
Build for a specific target environment (bundler, nodejs, web)$ wasm-pack build --target web