export RUST_BACKTRACE := 1
build:
cargo build
all: fmt clippy test build
run:
cargo run $(ARGS)
fmt:
cargo +nightly fmt
cargo +nightly fmt -- --check
clippy:
cargo clippy --all-targets --all-features -- -D warnings
test:
cargo test -- --nocapture --test-threads=1
clean:
cargo clean
help:
@echo "Usage: make [target]"
@echo ""
@echo "Available targets:"
@echo " build @echo " run @echo " fmt @echo " clippy @echo " test @echo " clean @echo " help
.PHONY: build run test clean