Examples of using wasm-bindgen
:
Add compilation target to the toolchain
rustup target add wasm32-unknown-unknown
Install wasm-pack
cargo install wasm-pack --version 0.9.1
Optionally, install static server
cargo install https
For node.js
and webpack
examples
you will need node.js
binary installed.
For detailed instructions visit https://nodejs.org/en/download/