-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMakefile
More file actions
37 lines (30 loc) · 795 Bytes
/
Makefile
File metadata and controls
37 lines (30 loc) · 795 Bytes
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
.DEFAULT_GOAL := help
# Show possible commands
.PHONY: help
help:
@echo "Available targets:"
@echo " build (b) - Build the project"
@echo " test (t) - Run tests with all features"
@echo " clippy (lint) - Run Clippy on the workspace"
@echo " fmt - Format the project using nightly"
@echo " fmt-check - Checks if the codebase is formatted correctly"
@echo " doc (d) - Build the docs"
# Development group
.PHONY: build b
build b:
cargo build --all-targets
.PHONY: test t
test t:
cargo test --all-features --all
.PHONY: clippy lint
clippy lint:
cargo clippy --all-features --all-targets
.PHONY: fmt
fmt:
cargo +nightly fmt
.PHONY: fmt-check
fmt-check:
cargo fmt --check
.PHONY: doc d
doc d:
cargo doc --no-deps --open