mirror of
https://github.com/vacp2p/zerokit.git
synced 2025-01-22 04:24:12 +00:00
62018b4eba
* chore: fix Makefile pre-build * chore: add Makefile command to install depenedncy cargo-make * chore: update all READMEs with instructions to install dependencies, build and test * chore: add target to fetch all submodules
531 B
531 B
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
OR
make installdeps
- 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