- run
cargo-install wasm-pack
or add it with flake.nix nix develop .
- add to path
PATH=$PATH:~/.cargo/bin
to run installed binaries - cargo-generate:
cargo install cargo-generate
- npm to use JavaScript bundler and dev server:
npm install npm@latest -g
- build project:
wasm-pack build
the wasm-bindgen guide to facilitate high-level interactions between wasm modules and JS