zerokit/rln-wasm
Carlos Pérez de5eb2066a
change: Replace profile overwrites to Workspace Cargo.toml (#95)
Since profile info specified inside workspace members `Cargo.toml`'s
is ignored by Cargo, this replaces the place to specify these details
for the workspace-level `Cargo.toml`.

NOTE that `panic` and `rpath` aren't supported with the Overwritting
feature. Therefore, the only required thing (if considered necessary) is
to create a new profile which also enables these things.

Resolves: #93
2023-02-08 12:38:42 +01:00
..
resources feat: wasm (#38) 2022-09-20 08:22:46 -04:00
src test: separate out tests (#103) 2023-01-31 21:27:28 +05:30
tests test: separate out tests (#103) 2023-01-31 21:27:28 +05:30
.gitignore chore: use cargo-make for building and publishing rln-wasm (#48) 2022-09-24 10:27:46 -04:00
Cargo.toml change: Replace profile overwrites to Workspace Cargo.toml (#95) 2023-02-08 12:38:42 +01:00
Makefile.toml chore: Makefile and consistent usage of cargo-make (#101) 2023-01-26 09:19:55 +05:30
README.md chore: use cargo-make for building and publishing rln-wasm (#48) 2022-09-24 10:27:46 -04:00

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
  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