zerokit/rln-wasm
Carlos Pérez 5eb98d4b33
change: Replace `u64` for `usize` for length vars (#94)
* 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>
2023-03-02 19:15:58 +05:30
..
resources feat: wasm (#38) 2022-09-20 08:22:46 -04:00
src Code quality (#114) 2023-02-27 11:46:16 +05:30
tests change: Replace `u64` for `usize` for length vars (#94) 2023-03-02 19:15:58 +05:30
.gitignore chore: use cargo-make for building and publishing rln-wasm (#48) 2022-09-24 10:27:46 -04:00
Cargo.toml Redundunt dependencies (#111) 2023-02-28 00:19:47 +05:30
Makefile.toml chore: Makefile and consistent usage of cargo-make (#101) 2023-01-26 09:19:55 +05:30
README.md Update documentation for building and testing (#120) 2023-02-24 11:50:51 +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

Running tests

cd rln-wasm
cargo make test

Publishing a npm package

cd rln-wasm
cargo make login
cargo make publish