tasks:
check:
description: "Run various checks"
command: !commands
- echo hello {who}
- cargo check --quiet --workspace --all-targets
- cargo check --quiet --workspace --all-features --lib --target wasm32-unknown-unknown
- cargo fmt --all -- --check
- cargo clippy --quiet --workspace --all-targets --all-features -- -D warnings -W clippy::all
- cargo test --quiet --workspace --all-targets --all-features
- cargo test --quiet --workspace --doc
- trunk build
setup:
command: !commands
- rustup target add wasm32-unknown-unknown
- cargo binstall trunk
- sudo apt install emscripten
serve:
command: !commands
- trunk serve