loro/CONTRIBUTING.md
2024-05-08 18:35:02 +08:00

868 B

Contributing Guide

Development Environment Setup

  1. Rust: Install from the official Rust website.
  2. Deno: Download and install from Deno's website.
  3. Node: Install from the Node.js website.
  4. pnpm: Run npm i -g pnpm for global installation.
  5. Rust Target: Add with rustup target add wasm32-unknown-unknown.
  6. wasm-bindgen-cli: Install version 0.2.90 via cargo install wasm-bindgen-cli --version 0.2.90.
  7. wasm-opt: Install using cargo install wasm-opt --locked.
  8. wasm-snip: Install using cargo install wasm-snip.
  9. cargo-nextest: Install using cargo install cargo-nextest --locked.
  10. cargo-fuzz: Run cargo install cargo-fuzz.
  11. cargo-llvm-cov(to generate coverage report): Run cargo install cargo-llvm-cov

Test

deno task test

# Build and test WASM
deno task test-wasm