#!/usr/bin/env bash set -euo pipefail if [ -f "${HOME}/.cargo/env" ]; then # shellcheck disable=SC1091 source "${HOME}/.cargo/env" fi command -v cargo >/dev/null 2>&1 || { echo "cargo is required to run fast gates" >&2 exit 1 } cargo fmt --all --check cargo check --workspace --all-targets --all-features --locked cargo nextest run --workspace --all-targets --all-features --locked # `clippy::cargo` spawns nested `cargo metadata` from clippy-driver. On the # NAS runner this can wait behind the parent cargo/clippy target lock; keep # dependency policy in strict gates via cargo-deny and cargo-udeps instead. cargo clippy --workspace --all-targets --all-features --locked --no-deps -- \ -D warnings \ -D clippy::pedantic \ -D clippy::nursery