.PHONY: run test fmt clippy pre-commit help
help:
@echo "Available targets:"
@echo " run - Build and run the project"
@echo " test - Run all tests"
@echo " fmt - Format code with rustfmt"
@echo " clippy - Run clippy linter"
@echo " pre-commit - Run all checks (fmt, clippy, test)"
run:
cargo run
test:
cargo test
fmt:
cargo fmt
clippy:
cargo clippy -- -D warnings
pre-commit: fmt clippy test
@echo "✓ All pre-commit checks passed!"