-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
128 lines (121 loc) · 2.45 KB
/
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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
SHELL=/bin/bash
.PHONY: all
all: install-pre-commit-mac \
install-pre-commit-linux \
install-pre-commit-hooks \
install-cargo-tools \
update-pre-commit-hooks \
install-nightly-toolchain \
install-cargo-clippy \
install-cargo-doc-rs \
install-cargo-mdbook \
install-cargo-deny \
install-cargo-udeps \
install-cargo-llvm-cov \
install-cargo-dist \
install-git-cliff \
install-cargo-nextest \
install-cargo-machete \
clean \
check \
fix \
book-build \
book-test \
live-book \
doc \
doc-rs \
doc-test \
nextest \
test \
build \
rustfmt-check \
rustfmt \
clippy \
deny \
udeps \
machete
install-pre-commit-mac:
@brew install pre-commit
install-pre-commit-linux:
@sudo apt install pre-commit
install-pre-commit-hooks:
@pre-commit install --install-hooks
@pre-commit install --hook-type commit-msg --install-hooks
update-pre-commit-hooks:
@pre-commit autoupdate
install-cargo-tools: install-nightly-toolchain \
install-cargo-clippy \
install-cargo-doc-rs \
install-cargo-mdbook \
install-cargo-deny \
install-cargo-udeps \
install-cargo-llvm-cov \
install-cargo-dist \
install-git-cliff \
install-cargo-nextest \
install-cargo-machete
install-nightly-toolchain:
@rustup toolchain install nightly
install-cargo-clippy:
@rustup component add clippy
install-cargo-doc-rs:
@cargo install cargo-docs-rs
install-cargo-mdbook:
@cargo install mdbook
install-cargo-deny:
@cargo install cargo-deny --locked
install-cargo-udeps:
@cargo install cargo-udeps --locked
install-cargo-llvm-cov:
@cargo install cargo-llvm-cov --locked
install-cargo-dist:
@cargo install cargo-dist --locked
install-git-cliff:
@cargo install git-cliff --locked
install-cargo-nextest:
@cargo install cargo-nextest --locked
install-cargo-machete:
@cargo install cargo-machete --locked
clean:
@cargo clean
check:
@cargo check
fix:
@cargo fix --allow-dirty --allow-staged
book-build:
@mdbook build book
book-test:
@mdbook test book
live-book: book-test
@mdbook serve book
doc:
@cargo doc
doc-rs:
@cargo +nightly docs-rs
doc-test:
@cargo test --doc
test:
@cargo test
nextest:
@cargo nextest run
coverage:
@cargo +nightly llvm-cov \
--all-features \
--workspace \
--doctests \
--html \
--open
build:
@cargo build
rustfmt-check:
@cargo +nightly fmt --all -- --check
rustfmt: fix
@cargo +nightly fmt --all
clippy:
@cargo clippy --all-targets --all-features
deny:
@cargo deny --all-features --log-level error check
udeps:
@cargo +nightly udeps
machete:
@cargo machete