1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
.PHONY: build release install clean test check fmt lint all
# Default target
all: check build test
# Build debug version
build:
cargo build
# Build release version
release:
cargo build --release
# Install to ~/.cargo/bin
install:
cargo install --path . --locked --bins --debug
# Clean build artifacts
clean:
cargo clean
# Run tests
test:
cargo nextest run
# Run clippy and check
check:
cargo check
cargo clippy -- -D warnings
# Format code
fmt:
cargo fmt
# Lint (check formatting)
lint:
cargo fmt -- --check
cargo clippy -- -D warnings
# Run with arguments (usage: make run ARGS="status")
run:
cargo run -- $(ARGS)
# Quick demo
demo: install
@echo "=== stax demo ==="
stax --help