Run it:
# add wasm32 target
rustup target add wasm32-unknown-unknown
# build wasm module
cd example && cargo build --target=wasm32-unknown-unknown --release
# run Javascript
node ./index.mjs
Run it:
# add wasm32 target
rustup target add wasm32-unknown-unknown
# build wasm module
cd example && cargo build --target=wasm32-unknown-unknown --release
# run Javascript
node ./index.mjs