-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
24 lines (19 loc) · 723 Bytes
/
Makefile
File metadata and controls
24 lines (19 loc) · 723 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
.PHONY: install-hooks test fmt lint bench
## Install git hooks from .githooks/ into the local repository.
## Run this once after cloning: make install-hooks
install-hooks:
git config core.hooksPath .githooks
chmod +x .githooks/pre-commit .githooks/pre-push .githooks/commit-msg
@echo "Git hooks installed (commit-msg: conventional commits, pre-commit: fmt+clippy, pre-push: test)."
## Run the full test suite.
test:
cargo test --all-features
## Check and apply code formatting.
fmt:
cargo fmt --all
## Run clippy with all features, treating warnings as errors.
lint:
cargo clippy --all-targets --all-features -- -D warnings
## Compile benchmarks without running them.
bench:
cargo bench --no-run --all-features