-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile.toml
70 lines (58 loc) · 1.54 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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
# configuration for https://github.com/sagiegurari/cargo-make
[config]
skip_core_tasks = true
[tasks.default]
alias = "ci"
[tasks.ci]
description = "Run continuous integration tasks"
dependencies = ["check", "clippy", "test", "style-check", "deny"]
[tasks.style-check]
description = "Check code style"
dependencies = ["fmt-check", "typos"]
[tasks.fmt-check]
description = "Check code formatting"
install_crate = "rustfmt"
toolchain = "nightly"
command = "cargo"
args = ["fmt", "--all", "--check"]
[tasks.fmt]
description = "Format source code"
install_crate = "rustfmt"
toolchain = "nightly"
command = "cargo"
args = ["fmt", "--all"]
[tasks.typos]
description = "Run typo checks"
install_crate = { crate_name = "typos-cli", binary = "typos", test_arg = "--version" }
command = "typos"
[tasks.check]
description = "Check code for errors and warnings"
command = "cargo"
args = ["check", "--all-targets", "--all-features"]
[tasks.build]
description = "Compile the project"
command = "cargo"
args = ["build", "--all-targets", "--all-features"]
[tasks.clippy]
description = "Run Clippy for linting"
command = "cargo"
toolchain = "nightly"
args = [
"clippy",
"--all-targets",
"--tests",
"--benches",
"--all-features",
"--",
"-D",
"warnings",
]
[tasks.test]
description = "Run tests"
command = "cargo"
args = ["test", "--all-targets", "--all-features"]
[tasks.deny]
description = "Run cargo-deny checks"
install_crate = { crate_name = "cargo-deny", binary = "cargo-deny", test_arg = "--version" }
command = "cargo"
args = ["deny", "--all-features", "check"]