-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
66 lines (52 loc) · 1.23 KB
/
Makefile
File metadata and controls
66 lines (52 loc) · 1.23 KB
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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
.PHONY: help build test clean format lint check run install dev audit
# Default target
help:
@echo "Available targets:"
@echo " make build - Build the project in release mode"
@echo " make test - Run all tests"
@echo " make clean - Clean build artifacts"
@echo " make format - Format code with rustfmt"
@echo " make lint - Run clippy linter"
@echo " make check - Run cargo check"
@echo " make run - Run the application"
@echo " make install - Install the binary"
@echo " make dev - Build and run in development mode"
@echo " make audit - Run security audit"
@echo " make all - Format, lint, test, and build"
# Build the project
build:
cargo build --release
# Run tests
test:
cargo test
# Clean build artifacts
clean:
cargo clean
# Format code
format:
cargo fmt
# Check formatting
format-check:
cargo fmt --check
# Run clippy
lint:
cargo clippy -- -D warnings
# Run cargo check
check:
cargo check
# Run the application
run:
cargo run
# Install the binary
install:
cargo install --path .
# Development mode: build and run
dev:
cargo run
# Security audit
audit:
cargo audit
# Run all checks
all: format lint test build
# Run CI checks
ci: format-check lint test