#!/usr/bin/env bash
set -euo pipefail

echo "== fmt"
cargo fmt --all -- --check

echo "== clippy"
cargo clippy --workspace --all-targets -- -D warnings

echo "== check + test"
cargo check --workspace
cargo test  --workspace

echo "== minimal-versions sanity"
cargo update -Z minimal-versions
cargo -Z minimal-versions build

echo "== security: deny/audit/vet"
cargo deny check licenses bans sources advisories
cargo audit
cargo vet
