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
62
63
64
.PHONY: check fmt clippy test test-all audit deny bench coverage build doc clean
# Run all CI checks locally
check: fmt clippy doc test deny audit
# Format check
fmt:
cargo fmt --all -- --check
# Lint (zero warnings)
clippy:
cargo clippy --all-features --all-targets -- -D warnings
# Run test suite (all features)
test:
cargo test --all-features
# Full feature matrix test — every feature combo that matters
test-all: test
@echo "── no_std (no default features) ──"
cargo test --no-default-features
@echo "── std only ──"
cargo test
@echo "── hoosh ──"
cargo test --features hoosh
@echo "── mcp ──"
cargo test --features mcp
@echo "── daimon ──"
cargo test --features daimon
@echo "── hoosh-llm ──"
cargo test --features hoosh-llm
@echo "── full ──"
cargo test --features full
@echo "✓ All feature combos pass"
# Security audit
audit:
cargo audit
# Supply-chain checks (cargo-deny)
deny:
cargo deny check
# Run benchmarks with history
bench:
./scripts/bench-history.sh
# Generate coverage report
coverage:
cargo llvm-cov --all-features --html --output-dir coverage/
@echo "Coverage report: coverage/html/index.html"
# Build release
build:
cargo build --release --all-features
# Generate documentation (warnings = errors)
doc:
RUSTDOCFLAGS="-D warnings" cargo doc --no-deps --all-features
# Clean build artifacts
clean:
cargo clean
rm -rf coverage/