.PHONY: all check fmt clippy test build ci clean help
all: check
check:
cargo check --all-features
fmt:
cargo fmt --all -- --check
fmt-fix:
cargo fmt --all
clippy:
cargo clippy --all-targets --all-features -- -D warnings
test:
cargo test --verbose
build:
cargo build --release
ci: fmt clippy test
@echo "All CI checks passed!"
clean:
cargo clean
help:
@echo "Available targets:"
@echo " all - Run 'check' (default)"
@echo " check - Run cargo check"
@echo " fmt - Check code formatting"
@echo " fmt-fix - Apply code formatting"
@echo " clippy - Run Clippy lints"
@echo " test - Run tests"
@echo " build - Build release binary"
@echo " ci - Run all CI checks locally"
@echo " clean - Clean build artifacts"
@echo " help - Show this help"