zerokit/rln-wasm
tyshko-rostyslav 6ff4eeb237
Macro to call functions with an error message (#140)
abstract out calls

---------

Co-authored-by: tyshkor <tyshko1@gmail.com>
2023-03-29 15:16:36 +02:00
..
resources
src Macro to call functions with an error message (#140) 2023-03-29 15:16:36 +02:00
tests change: Replace `u64` for `usize` for length vars (#94) 2023-03-02 19:15:58 +05:30
.gitignore
Cargo.toml Redundunt dependencies (#111) 2023-02-28 00:19:47 +05:30
Makefile.toml add wasm-strip to reduce size even more (#137) 2023-03-24 09:30:48 +05:30
README.md add wasm-strip to reduce size even more (#137) 2023-03-24 09:30:48 +05:30

README.md

RLN for WASM

This library is used in waku-org/js-rln

Building the library

  1. Install wasm-pack
curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh
  1. Install cargo-make
cargo install cargo-make

OR

make installdeps
  1. Compile zerokit for wasm32-unknown-unknown:
cd rln-wasm
cargo make build
  1. 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