.PHONY: help check test deny fmt stealth
help:
@grep -E '^[a-zA-Z_-]+:.*?## ' $(MAKEFILE_LIST) | \
awk 'BEGIN {FS = ":.*?## "}; {printf " %-12s %s\n", $$1, $$2}'
fmt:
cargo fmt --check
test:
RUSTFLAGS="-D warnings" cargo test --locked
RUSTFLAGS="-D warnings" cargo test --locked --features http
RUSTFLAGS="-D warnings" cargo test --locked --features cli
RUSTFLAGS="-D warnings" cargo test --locked --features http,cli
deny:
cargo deny check
bash scripts/forbid-deps.sh
stealth:
bash scripts/assert-stealth.sh snapif/snapif
workflows:
actionlint
zizmor --min-severity=high .github/workflows
check:
cargo fmt --check
RUSTFLAGS="-D warnings" cargo clippy --locked --all-targets -- -D warnings
RUSTFLAGS="-D warnings" cargo clippy --locked --all-targets --features http -- -D warnings
RUSTFLAGS="-D warnings" cargo clippy --locked --all-targets --features cli -- -D warnings
RUSTFLAGS="-D warnings" cargo clippy --locked --all-targets --features http,cli -- -D warnings
RUSTDOCFLAGS="-D warnings" cargo doc --locked --no-deps
RUSTFLAGS="-D warnings" cargo test --locked
RUSTFLAGS="-D warnings" cargo test --locked --features http
RUSTFLAGS="-D warnings" cargo test --locked --features cli
RUSTFLAGS="-D warnings" cargo test --locked --features http,cli
cargo deny check
bash scripts/forbid-deps.sh
python3 scripts/test_workflow_triggers.py
python3 scripts/test_forbid_deps.py
$(MAKE) workflows