mirror of
https://github.com/vacp2p/zerokit.git
synced 2026-01-09 14:38:01 -05:00
* feat: add Makefile with pre build check. add targets for build, test and clean * feat: add workspace level build file * chore: add skeletal build files for each crate * chore: remove environment variable to extend workspace makefile * chore: formatting * chore: add release flags to all builds/tests
RLN for WASM
This library is used in waku-org/js-rln
Building the library
- Install
wasm-pack
curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh
- Install
cargo-make
cargo install cargo-make
- Compile zerokit for
wasm32-unknown-unknown:
cd rln-wasm
cargo make build
Running tests
cd rln-wasm
cargo make test
Publishing a npm package
cd rln-wasm
cargo make login
cargo make publish