generated from dr-orlovsky/template
-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMakefile.toml
38 lines (30 loc) · 1020 Bytes
/
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
[env]
CRATE_TOOLCHAIN_ = { source = "${CRATE_TOOLCHAIN}", default_value = "stable" }
CRATE_FEATURES_ = { source = "${CRATE_FEATURES}", default_value = "all" }
[tasks.fmt]
command = "cargo"
toolchain = "nightly"
args = ["fmt", "--all"]
[tasks.fmt-check]
command = "cargo"
toolchain = "nightly"
args = ["fmt", "--all", "--", "--check"]
[tasks.clippy]
command = "cargo"
toolchain = "stable"
args = ["clippy", "--workspace", "--all-features"]
[tasks.doc]
command = "cargo"
toolchain = "nightly"
args = ["doc", "--workspace", "--all-features"]
[tasks.test]
command = "rustup"
args = ["run", "${CRATE_TOOLCHAIN_}", "cargo", "test", "--workspace", "--features", "${CRATE_FEATURES_}", "--no-fail-fast"]
[tasks.test-all]
run_task = { name = ["fmt", "clippy", "test" ] }
[tasks.check]
command = "rustup"
args = ["run", "${CRATE_TOOLCHAIN_}", "cargo", "check", "--features", "${CRATE_FEATURES_}"]
[tasks.check-all]
command = "rustup"
args = ["run", "${CRATE_TOOLCHAIN_}", "cargo", "check", "--workspace", "--all-features"]