-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
68 lines (55 loc) · 2.08 KB
/
Makefile
File metadata and controls
68 lines (55 loc) · 2.08 KB
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
65
66
67
68
.PHONY: help test test-all bench verify fmt clippy doc coverage build build-release python clean
# Show available targets
help:
@echo "Available targets:"
@echo " test Run core library tests"
@echo " test-all Run full workspace tests"
@echo " bench Run benchmarks"
@echo " verify Run verification tests"
@echo " fmt Check formatting"
@echo " clippy Run clippy lints"
@echo " doc Generate API documentation"
@echo " coverage Generate code coverage report"
@echo " build Debug build"
@echo " build-release Release build"
@echo " python Build Python bindings"
@echo " clean Remove build artifacts"
# Run core library tests (std features)
test:
cargo test -p qres_core --features std --release
# Run full workspace tests (all features, serial execution for determinism)
test-all:
cargo test --workspace --all-features --release -- --test-threads=1
# Run benchmarks
bench:
cargo bench --workspace --all-features
# Run verification tests (invariants + determinism)
verify:
cargo test -p qres_core --features std --release -- verify
# Check formatting
fmt:
cargo fmt --all -- --check
# Run clippy lints (warnings are errors)
clippy:
cargo clippy --workspace --all-features --all-targets -- -D warnings
# Generate API documentation (including private items)
doc:
cargo doc --workspace --all-features --no-deps --document-private-items
@echo "Open target/doc/qres_core/index.html in your browser"
# Generate code coverage report (requires cargo-tarpaulin)
coverage:
cargo tarpaulin --workspace --all-features --out Html --output-dir coverage/ --exclude-files "crates/qres_wasm/*" "target/*"
@echo "Open coverage/tarpaulin-report.html in your browser"
# Debug build (all workspace members)
build:
cargo build --workspace
# Release build (all workspace members)
build-release:
cargo build --workspace --release
# Build Python bindings (requires maturin: pip install maturin)
python:
cd bindings/python && maturin develop --release
# Remove build artifacts
clean:
cargo clean
rm -rf coverage/