Created
January 29, 2026 11:13
-
-
Save 13hulk/e237fb540f20e93a3bf8b93a3a1893e3 to your computer and use it in GitHub Desktop.
Pybites Rust Cohort: A minimal Makefile
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| .PHONY: help build test run fmt clippy check clean pre-commit-install all | |
| help: | |
| @echo "Available commands:" | |
| @echo " make build - Build the project" | |
| @echo " make test - Run tests" | |
| @echo " make run - Run the binary" | |
| @echo " make fmt - Format code" | |
| @echo " make fmt-check - Check formatting" | |
| @echo " make clippy - Run linter" | |
| @echo " make check - Quick compile check" | |
| @echo " make clean - Remove build artifacts" | |
| @echo " make pre-commit-install - Install pre-commit hooks" | |
| @echo " make all - Run fmt, clippy, test, build" | |
| build: | |
| cargo build | |
| test: | |
| cargo test | |
| run: | |
| cargo run | |
| fmt: | |
| cargo fmt | |
| fmt-check: | |
| cargo fmt --check | |
| clippy: | |
| cargo clippy -- -D warnings | |
| check: | |
| cargo check | |
| clean: | |
| cargo clean | |
| pre-commit-install: | |
| pre-commit install | |
| all: fmt clippy test build |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment