1.0.0 • Published 3 years ago
@parrotfi/wasm v1.0.0
wasm
share rust code with js
setup
cargo install wasm-pack
cargo install wasm-bindgen-cli
build for nodejs
make nodejs
use code:
node test.js
shrink wasm size
- https://rustwasm.github.io/docs/book/game-of-life/code-size.html
- https://github.com/WebAssembly/binaryen
(about 64k -> 36k)
references
1.0.0
3 years ago