# Task runner for rtb-credentials. `just ci` mirrors the MR gate.
default: check
check:
cargo check --all-targets
build:
cargo build --all-targets
fmt:
cargo fmt --all
fmt-check:
cargo fmt --all --check
lint:
cargo clippy --all-targets -- -D warnings
# No `|| cargo test` fallback: it re-ran a nextest failure under a different
# execution model, so a test failing only under nextest left this green.
test:
@cargo nextest --version >/dev/null 2>&1 || { echo "cargo-nextest is required: cargo install cargo-nextest --locked" >&2; exit 1; }
cargo nextest run
audit:
cargo deny check
docs:
RUSTDOCFLAGS="-D warnings" cargo doc --no-deps
site-build:
zensical build --clean
site-serve:
zensical serve
ci: fmt-check lint docs test audit