set positional-arguments
alias t := test
alias c := check
alias b := build
alias l := lint
help:
@just --list
# Run cargo check on workspace
check:
cargo check --workspace
# Run cargo build on workspace
build:
cargo build --workspace
# Run cargo nextest on workspace
test *args:
#!/usr/bin/env bash
if ! command -v cargo-nextest >/dev/null; then
echo "cargo-nextest not found. You can install it by running: cargo install cargo-nextest"
exit 1
fi
cargo nextest run --no-tests=warn --workspace "$@"
cargo test --doc
# Test and produce a code coverage report
coverage:
#!/usr/bin/env bash
if ! command -v cargo-llvm-cov &>/dev/null || ! command -v cargo-nextest &>/dev/null; then
echo "cargo-nextest or cargo-llvm-cov not found. You can install them by running: cargo install cargo-llvm-cov cargo-nextest"
exit 1
fi
cargo llvm-cov nextest --workspace
# Run cargo clippy on workspace
lint:
cargo clippy --workspace
# Scan Cargo.lock for known vulnerabilities in dependencies
audit:
#!/usr/bin/env bash
if ! command -v cargo-audit >/dev/null; then
echo "cargo-audit not found. You can install it by running: cargo install cargo-audit"
exit 1
fi
cargo audit
# Show outdated dependencies
show-outdated:
cargo outdated --workspace