mirror of https://github.com/vacp2p/zerokit.git
5eb98d4b33
* change: Replace `u64` for `usize` for length vars Resolves: #39 * fix(rln): usize instead of u64 in tests * fix(rln): linter * fix: outlier u64 usage * fix(rln|rln-wasm): serde of usize types --------- Co-authored-by: Aaryamann Challani <43716372+rymnc@users.noreply.github.com> |
||
---|---|---|
.. | ||
resources | ||
src | ||
tests | ||
.gitignore | ||
Cargo.toml | ||
Makefile.toml | ||
README.md |
README.md
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