-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile.toml
99 lines (79 loc) · 1.96 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
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
# 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 = ["lint", "clippy", "check", "test"]
[tasks.all]
description = "Run all tasks"
dependencies = ["format", "lint-typos", "clippy", "check", "dependencies", "build", "coverage-text"]
[tasks.clippy]
description = "Run Clippy for linting"
command = "cargo"
args = [
"clippy",
"--all-targets",
"--all-features",
"--tests",
"--benches",
"--",
"-W",
"clippy::pedantic",
"-D",
"warnings",
]
[tasks.lint]
description = "Lint code style (formatting, typos, docs, markdown)"
dependencies = ["lint-format", "lint-typos"]
[tasks.lint-format]
description = "Lint code formatting"
command = "cargo"
args = ["fmt", "--all", "--check"]
[tasks.format]
description = "Fix code formatting"
command = "cargo"
args = ["fmt", "--all"]
[tasks.lint-typos]
description = "Run typo checks"
install_crate = { crate_name = "typos-cli", binary = "typos", test_arg = "--version" }
command = "typos"
[tasks.dependencies]
description = "Lint code style (formatting, typos, docs, markdown)"
dependencies = ["audit", "deny"]
[tasks.audit]
command = "cargo"
install_crate = "cargo-audit"
args = ["audit"]
[tasks.deny]
command = "cargo"
install_crate = "cargo-deny"
args = ["deny", "check", "bans", "licenses", "--exclude-dev"]
[tasks.check]
description = "Check code for errors and warnings"
command = "cargo"
args = ["check", "--all-targets", "--all-features"]
[tasks.coverage]
description = "Generate code coverage report"
command = "cargo"
args = [
"llvm-cov",
"--lcov",
"--output-path",
"target/lcov.info",
]
[tasks.coverage-text]
description = "Generate code coverage report"
command = "cargo"
args = [
"llvm-cov",
]
[tasks.build]
command = "cargo"
args = ["build"]
dependencies = ["lint-format", "clippy", "audit"]
[tasks.test]
command = "cargo"
args = ["test"]
dependencies = ["build"]