-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile.toml
52 lines (40 loc) · 1.5 KB
/
Makefile.toml
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
# ---- GENERAL ----
[tasks.verify]
toolchain = "nightly"
description = "Format, lint with Clippy and run tests"
dependencies = ["fmt", "clippy_fix", "test"]
[tasks.verify_only]
toolchain = "nightly"
description = "Like `verify`, but fails if the code isn't formatted. Primarily for CI."
dependencies = ["fmt_check", "clippy", "test"]
# ---- TEST ----
[tasks.test]
description = "Run tests. i.e.: 'cargo make test'."
toolchain = "nightly"
command = "cargo"
args = ["test"]
# ---- LINT ----
[tasks.fmt]
description = "Format with nightly rustfmt"
toolchain = "nightly"
command = "cargo"
args = ["fmt", "--all"]
[tasks.fmt_check]
extend = "fmt"
toolchain = "nightly"
description = "Check format with nightly rustfmt"
args = ["fmt", "--all", "--", "--check"]
[tasks.clippy]
description = "Lint with Clippy"
clear = true
toolchain = "nightly"
install_crate = { rustup_component_name = "clippy", binary = "cargo-clippy", test_arg = "--help" }
command = "cargo"
args = ["clippy", "--all-features", "--", "--deny", "warnings", "--deny", "clippy::pedantic", "--deny", "clippy::nursery", "--allow", "clippy::manual_filter_map"]
[tasks.clippy_fix]
description = "Lint and fix with Clippy"
clear = true
toolchain = "nightly"
install_crate = { rustup_component_name = "clippy", binary = "cargo-clippy", test_arg = "--help" }
command = "cargo"
args = ["clippy", "--all-features", "--fix", "--allow-dirty", "--", "--deny", "warnings", "--deny", "clippy::pedantic", "--deny", "clippy::nursery", "--allow", "clippy::manual_filter_map"]