1. Install
# Cargo.toml
[]
= "0.1.8"
2. Compile
-
Compile, generate
.jsand.d.tsbindings, and generate annpmpackage withwasm-pack -
Compile and generate
.jsand.d.tsbindings withwasm-bindgen-cli-
Install the
wasm32-unknown-unknowncompilation target -
Build
-
Run
-
3. Optimize
Optimize for binary size with wasm-opt using -Os or -Oz