1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
.PHONY: check fmt clippy test audit deny vet fuzz coverage build doc clean msrv
# Run all CI checks locally
check: fmt clippy test audit
# Format check
fmt:
cargo fmt --all -- --check
# Lint (zero warnings)
clippy:
cargo clippy --all-targets -- -D warnings
# Run test suite
test:
cargo test
# Security audit
audit:
cargo audit
# Supply-chain checks (cargo-deny)
deny:
cargo deny check
# Supply-chain verification (cargo-vet)
vet:
cargo vet
# Run fuzz targets (30 seconds each)
fuzz:
cargo fuzz run fuzz_blend -- -max_total_time=30
cargo fuzz run fuzz_convert -- -max_total_time=30
cargo fuzz run fuzz_filter -- -max_total_time=30
cargo fuzz run fuzz_blur -- -max_total_time=30
cargo fuzz run fuzz_lut -- -max_total_time=30
cargo fuzz run fuzz_icc -- -max_total_time=30
cargo fuzz run fuzz_composite -- -max_total_time=30
cargo fuzz run fuzz_transform -- -max_total_time=30
# Generate coverage report
coverage:
cargo llvm-cov --html --output-dir coverage/
@echo "Coverage report: coverage/html/index.html"
# Build release
build:
cargo build --release
# Generate documentation
doc:
RUSTDOCFLAGS="-D warnings" cargo doc --no-deps
# Clean build artifacts
clean:
cargo clean
rm -rf coverage/
# Verify minimum supported Rust version (MSRV 1.89)
msrv:
cargo +1.89 check --all-features