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
# Default target
.PHONY: all
all: build
# Build the project
.PHONY: build
build:
cargo build
# Clean the project
.PHONY: clean
clean:
cargo clean
# Run tests
.PHONY: test
test:
cargo test --all -- --test-threads=1
# Format the code
.PHONY: format
format:
cargo fmt
# Update dependencies
.PHONY: update
update:
cargo update
# Upgrade dependencies
.PHONY: upgrade
upgrade:
cargo-upgrade upgrade
# Lint the code
.PHONY: lint
lint:
cargo clippy -- -D warnings