version: "3"
tasks:
ci:
desc: Run the local equivalent of the GitHub CI checks.
cmds:
- task: fmt
- task: lint
- task: docs
- task: test
fmt:
desc: Check Rust formatting.
cmds:
- cargo fmt --all -- --check
- cargo fmt --manifest-path tests/feature_unification/Cargo.toml --all -- --check
lint:
desc: Lint all Rust targets and features.
cmds:
- cargo clippy --all-features --all-targets --locked -- -D warnings
- cargo clippy --manifest-path tests/feature_unification/Cargo.toml --workspace --all-features --all-targets --locked -- -D warnings
docs:
desc: Build documentation with warnings denied.
env:
RUSTDOCFLAGS: -D warnings
cmds:
- cargo doc --no-deps --all-features --locked
test:
desc: Test every backend version, parallelism, and feature unification.
cmds:
- bash scripts/test-backends.sh