-
Notifications
You must be signed in to change notification settings - Fork 7
/
Makefile
28 lines (24 loc) · 1 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
.PHONY=setup
setup:
cargo install cargo-sort
rustup component add rustfmt clippy
.PHONY=fmt
fmt: setup
cargo sort -w
cargo fmt
cargo clippy --all-targets --features tokio --profile dev -- -D warnings
cargo clippy --all-targets --features tokio --profile release -- -D warnings
cargo clippy --all-targets --no-default-features --features async-std --profile dev -- -D warnings
cargo clippy --all-targets --no-default-features --features async-std --profile release -- -D warnings
.PHONY=fmt-fix
fmt-fix: setup
cargo sort -w
cargo fmt
cargo clippy --fix --all-targets --features tokio --profile dev -- -D warnings
cargo clippy --fix --all-targets --features tokio --profile release -- -D warnings
cargo clippy --fix --all-targets --no-default-features --features async-std --profile dev -- -D warnings
cargo clippy --fix --all-targets --no-default-features --features async-std --profile release -- -D warnings
.PHONY=test
test:
cargo test --features tokio
cargo test --no-default-features --features async-std