mirror of https://github.com/vacp2p/zerokit.git
d8f813bc2e
* chore(rln): optimize into Lazy OnceCells * fix * fix: dont change duration * fix: increase duration? * chore: add backtrace * fix: remove plotter to avoid f64 range failure * fix: remove ci alteration * fix: use arc over witness calc * fix: remove more lifetimes * fix: benchmark correct fn call, not the getter * fix: bench config |
||
---|---|---|
.. | ||
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
- Compile a slimmer version of zerokit for
wasm32-unknown-unknown
:
cd rln-wasm
cargo make post-build
Running tests
cd rln-wasm
cargo make test
Publishing a npm package
cd rln-wasm
cargo make login
cargo make publish