cargo_setupx/templates/
makefile.rs1pub const MAKEFILE: &str = r#".PHONY: fmt lint lint-fix check spell spell-fix quality setup-hooks test run
5
6# Run the application
7run:
8 cargo run
9
10# Run tests
11test:
12 cargo test
13
14# Format code (like Prettier)
15fmt:
16 cargo fmt
17 taplo format
18
19# Lint code (like ESLint)
20lint:
21 cargo clippy
22
23# Fix linting issues automatically
24lint-fix:
25 cargo clippy --fix --allow-dirty --allow-staged
26
27# Check code without building (faster)
28check:
29 cargo check
30
31# Check spelling
32spell:
33 typos
34
35# Fix spelling issues automatically
36spell-fix:
37 typos --write-changes
38
39# Setup git hooks
40setup-hooks:
41 ./.githooks/setup.sh
42
43# Run all code quality checks
44quality: fmt lint check spell
45
46# Build release version
47build:
48 cargo build --release
49
50# Clean build artifacts
51clean:
52 cargo clean
53"#;