Skip to content

Commit 4e3278c

Browse files
raphaelstyclaude
andcommitted
Add Makefile for development tasks
Includes targets for: - build/release: compilation - test/test-release: run tests - lint/clippy/fmt-check: linting - fmt: format code - bench: run benchmarks - doc: build documentation - ci: run all CI checks locally 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent 32bbaa3 commit 4e3278c

File tree

1 file changed

+62
-0
lines changed

1 file changed

+62
-0
lines changed

Makefile

Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
.PHONY: all build test lint fmt check clean bench doc
2+
3+
all: fmt lint test
4+
5+
# Build the project
6+
build:
7+
cargo build
8+
9+
# Build in release mode
10+
release:
11+
cargo build --release
12+
13+
# Run all tests
14+
test:
15+
cargo test
16+
17+
# Run tests in release mode
18+
test-release:
19+
cargo test --release
20+
21+
# Run linting (clippy + format check)
22+
lint: fmt-check clippy
23+
24+
# Run clippy
25+
clippy:
26+
cargo clippy --all-targets --all-features -- -D warnings
27+
28+
# Check formatting
29+
fmt-check:
30+
cargo fmt --all -- --check
31+
32+
# Format code
33+
fmt:
34+
cargo fmt --all
35+
36+
# Type check without building
37+
check:
38+
cargo check
39+
40+
# Run benchmarks
41+
bench:
42+
cargo bench
43+
44+
# Compile benchmarks without running
45+
bench-check:
46+
cargo bench --no-run
47+
48+
# Build documentation
49+
doc:
50+
cargo doc --no-deps --all-features
51+
52+
# Open documentation in browser
53+
doc-open:
54+
cargo doc --no-deps --all-features --open
55+
56+
# Clean build artifacts
57+
clean:
58+
cargo clean
59+
60+
# Run all CI checks locally
61+
ci: fmt-check clippy test doc bench-check
62+
@echo "All CI checks passed!"

0 commit comments

Comments
 (0)