-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
31 lines (23 loc) · 876 Bytes
/
Makefile
File metadata and controls
31 lines (23 loc) · 876 Bytes
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
.DEFAULT_GOAL := help
.PHONY: pre-commit check coverage format run test help
pre-commit: check test
check:
cargo fmt --all -- --check --config group_imports=StdExternalCrate
cargo clippy --all-targets --all-features -- -D warnings
cargo check --all-features
coverage:
cargo llvm-cov --workspace --all-features --html --open
format:
cargo fmt --all -- --config group_imports=StdExternalCrate
run:
cargo run -p rustcoon
test:
cargo test --all-features
help:
@echo "Available commands:"
@echo " pre-commit - Run all checks and tests (run this before committing)"
@echo " check - Run formatting, linting, and type checking"
@echo " coverage - Generate & open HTML coverage report for the workspace"
@echo " run - Run the application"
@echo " test - Run the test suite"
@echo " help - Show this help message"