-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile.toml
133 lines (106 loc) · 3.56 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
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
[config]
skip_core_tasks = true
default_to_workspace = false
time_summary = true
[env]
CARGO_MAKE_EXTEND_WORKSPACE_MAKEFILE = true
RUST_BACKTRACE = 1
[tasks.install-rust-nightly-rustfmt]
private = true
description = "Installs nightly Rust with rustfmt (hopefully)."
toolchain = "nightly"
install_crate = { rustup_component_name = "rustfmt", binary = "rustfmt", test_arg = "--version" }
[tasks.install-rust-toolchain]
private = true
description = "Installs the used Rust toolchain with specified components."
command = "rustup"
args = ["show"]
[tasks.format]
description = "Formats all Rust code."
install_crate = false
command = "cargo"
args = ["+nightly", "fmt"]
dependencies = ["install-rust-nightly-rustfmt"]
[tasks.formatting]
description = "Checks all Rust code formatting."
install_crate = false
command = "cargo"
args = ["+nightly", "fmt", "--", "--check"]
dependencies = ["install-rust-nightly-rustfmt"]
[tasks.clippy-default]
install_crate = false
command = "cargo"
args = ["clippy", "--workspace", "--all-targets", "--", "-D", "warnings"]
dependencies = ["install-rust-toolchain"]
[tasks.clippy-none]
install_crate = false
command = "cargo"
args = ["clippy", "--workspace", "--all-targets", "--no-default-features", "--", "-D", "warnings"]
dependencies = ["install-rust-toolchain"]
[tasks.clippy-alloc]
install_crate = false
command = "cargo"
args = ["clippy", "--workspace", "--all-targets", "--no-default-features", "--features", "alloc", "--", "-D", "warnings"]
dependencies = ["install-rust-toolchain"]
[tasks.clippy-std]
install_crate = false
command = "cargo"
args = ["clippy", "--workspace", "--all-targets", "--no-default-features", "--features", "std", "--", "-D", "warnings"]
dependencies = ["install-rust-toolchain"]
[tasks.clippy-heapless]
install_crate = false
command = "cargo"
args = ["clippy", "--workspace", "--all-targets", "--no-default-features", "--features", "heapless", "--", "-D", "warnings"]
dependencies = ["install-rust-toolchain"]
[tasks.clippy-all]
install_crate = false
command = "cargo"
args = ["clippy", "--workspace", "--all-targets", "--all-features", "--", "-D", "warnings"]
dependencies = ["install-rust-toolchain"]
[tasks.clippy]
description = "Runs clippy with all various feature sets."
dependencies = [
"clippy-default",
"clippy-none",
"clippy-alloc",
"clippy-std",
"clippy-heapless",
"clippy-all",
]
[tasks.test-all-features]
description = "Runs all tests via cargo test with all features."
install_crate = false
command = "cargo"
args = ["test", "--workspace", "--all-features"]
dependencies = ["install-rust-toolchain"]
[tasks.test-nextest]
description = "Runs all tests via nextest (installs nextest if necessary)."
install_crate = true
command = "cargo"
args = ["nextest", "run", "--workspace", "--all-features"]
dependencies = ["install-rust-toolchain"]
[tasks.test-docs]
description = "Runs all doc-tests (since nextest does not)."
install_crate = false
command = "cargo"
args = ["test", "--workspace", "--all-features", "--doc"]
dependencies = ["install-rust-toolchain"]
[tasks.nextest]
description = "Runs all tests via cargo nextest."
dependencies = ["test-nextest", "test-docs"]
[tasks.test]
description = "Runs all tests via cargo test."
dependencies = ["test-all-features"] # Future: potentially some no-std test.
[tasks.stable-ci]
description = """
Runs all CI checks with stable Rust (all but formatting).
"""
dependencies = ["test", "clippy"]
[tasks.ci]
description = """
Runs all checks necessary for CI to pass.
This includes formatting, clippy and tests currently.
"""
dependencies = ["test", "clippy", "formatting"]
[tasks.default]
alias = "ci"