This is a demo of how to run plasma with webassembly. See TypeScript API docs.
rustup target add wasm32-unknown-unknown
cargo install wasm-bindgen-cli
cargo install just
wasm-opt
from https://github.com/WebAssembly/binaryennpm
and nodejs
from https://nodejs.org/cd web
npm install
just serve
It will compile rust, javascript, and start a web server on http://localhost:8080
just wasm webpack
It will compile everything and put all the distribution files in the ./dist
directory.
If you have a wasm-opt
installed, try:
just wasm opt webpack
Which will result in an optimized wasm file.