@penumbra-zone/wasm

v7.0.0
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

test

vitest run

build

tsc --build

clean

rm -rfv dist wasm package penumbra-zone-wasm-*.tgz

compile

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

prebuild

tsc --build --clean

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