#!/usr/bin/env bash # The decline-matrix runner (tasks/implementation/w5-decline-matrix.md): # the per-build verification set as one command — `cargo test` per # feature build (none / git / session / tunnel / sftp-only / # --all-features; the sftp-only run is the no-op-feature fact itself # verified), clippy ×2 (-D warnings, with and without # --all-features), fmt, doc. set -euo pipefail cd "$(dirname "$0")/.." default_build="none (default = [])" for build in "" "--features git" "--features session" "--features tunnel" "--features sftp" "--all-features"; do label="${build:-$default_build}" echo "== cargo test [$label]" cargo test $build done echo "== clippy (no all-features)" cargo clippy --all-targets -- -D warnings echo "== clippy (all-features)" cargo clippy --all-features --all-targets -- -D warnings echo "== fmt" cargo fmt --check echo "== doc" cargo doc --no-deps