-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
49 lines (37 loc) · 780 Bytes
/
Makefile
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
.DEFAULT_GOAL := all
.PHONY: all
all: clean check lint test build
.PHONY: init
init:
pre-commit install
cargo install cargo-audit
.PHONY: clean
clean:
rm -rf target
.PHONY: check
check:
cargo check --bins --tests --benches --examples --all-features
.PHONY: lint
lint: fmt-check clippy
.PHONY: fmt-check
fmt-check:
cargo fmt -- --check
.PHONY: fmt
fmt:
cargo fmt
.PHONY: clippy
clippy:
cargo clippy --bins --tests --benches --examples --all-features
.PHONY: test
test:
cargo test --bins --tests --all-features
cargo test --doc --all-features
.PHONY: build
build:
cargo build --bins --tests --benches --examples --all-features
.PHONY: release
release:
cargo build --bins --tests --benches --examples --all-features --release
.PHONY: audit
audit:
cargo audit