@penumbra-zone/wasm

v4.0.3
The Penumbra core repo has a ton of utilities and functions that are critical to developing an app that interacts with the Penumbra chain. However, it is written in Rust. This package exists to bridge the gap between the Rust environment and the web. This

dev

cargo watch -C ./crate --postpone -- pnpm turbo run compile

lint

eslint "src/*.ts*"

test

vitest run

clean

rm -fv wasm/index*

compile

cd crate && wasm-pack build --no-pack --target bundler --out-name index --out-dir ../wasm

lint:rust

cd crate && cargo fmt --all -- --check && cargo clippy -- -D warnings && cargo clippy --tests -- -D warnings

test:rust

cd crate && wasm-pack test --headless --firefox -- --test build --target wasm32-unknown-unknown --release --features 'mock-database'

clean:rust

cargo clean --manifest-path ./crate/Cargo.toml

format:rust

cd crate && cargo fmt --all
npm i @penumbra-zone/[email protected]

Metadata

Downloads