-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile.toml
More file actions
120 lines (105 loc) · 2.74 KB
/
Makefile.toml
File metadata and controls
120 lines (105 loc) · 2.74 KB
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
[tasks.sort]
description = "Sort the Cargo.toml dependencies."
category = "Maintenance"
command = "cargo"
install_crate = "cargo-sort"
args = ["sort", "--workspace"]
[tasks.unused-deps]
description = "Detect unused dependencies in the Cargo.toml file using cargo-machete."
category = "Maintenance"
install_crate = "cargo-machete"
command = "cargo"
args = ["machete"]
[tasks.check]
description = "Perform a cargo check."
category = "Development"
command = "cargo"
args = ["check", "--workspace"]
[tasks.test]
description = "Run workspace tests."
category = "Development"
command = "cargo"
args = ["test", "--workspace"]
[tasks.fmt-check]
description = "Check code formatting."
category = "Development"
command = "cargo"
env = { RUSTUP_TOOLCHAIN = "nightly" }
args = ["fmt", "--all", "--", "--check"]
[tasks.fmt]
description = "Check code formatting."
category = "Development"
command = "cargo"
env = { RUSTUP_TOOLCHAIN = "nightly" }
args = ["fmt", "--all"]
[tasks.lint]
description = "Run Clippy linter."
category = "Development"
command = "cargo"
args = [
"clippy",
"--workspace",
"--all-targets",
"--all-features",
"--",
"-D",
"warnings",
]
[tasks.dylint]
description = "Build and run all Dylint lints against the workspace."
category = "Development"
command = "cargo"
args = ["dylint", "--workspace", "--all"]
toolchain = "nightly"
workspace = false
[tasks.clean]
description = "Clean the project."
category = "Maintenance"
command = "cargo"
args = ["clean"]
[tasks.update]
description = "Update dependencies."
category = "Maintenance"
command = "cargo"
args = ["update"]
[tasks.upgrade]
description = "Upgrade dependencies to the latest versions."
category = "Maintenance"
install_crate = "cargo-upgrade"
command = "cargo"
args = ["upgrade"]
[tasks.deny]
description = "Run cargo-deny to check for license and security issues."
category = "Security"
install_crate = "cargo-deny"
command = "cargo"
args = ["deny", "check"]
[tasks.audit]
description = "Run cargo-audit to check for vulnerabilities."
category = "Security"
install_crate = "cargo-audit"
command = "cargo"
args = ["audit"]
[tasks.ci]
description = "Full CI quality check pipeline."
category = "CI"
dependencies = ["fmt-check", "check", "lint", "test", "dylint", "deny", "audit"]
workspace = false
[tasks.ci-apply]
description = "Full CI quality check pipeline with automatic fixes."
category = "CI"
dependencies = ["fmt", "check", "lint", "test", "dylint", "deny", "audit"]
[tasks.act-ci]
description = "Run GitHub Actions CI locally on Ubuntu using act."
category = "CI"
command = "act"
args = [
"-W",
".github/workflows/ci.yaml",
"-P",
"ubuntu-latest=ghcr.io/catthehacker/ubuntu:full-latest",
"--container-architecture",
"linux/amd64",
"--rm",
]
workspace = false