-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile.toml
87 lines (65 loc) · 1.35 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
[config]
default_to_workspace = false
[env]
CARGO_MAKE_EXTEND_WORKSPACE_MAKEFILE = true
[tasks.format]
install_crate = "rustfmt"
command = "cargo"
args = ["fmt", "--all", "--", "--check"]
[tasks.format-write]
install_crate = "rustfmt"
command = "cargo"
args = ["fmt", "--all"]
[tasks.lint]
install_crate = "clippy"
command = "cargo"
args = [
"clippy",
"--workspace",
"--all-targets",
"--all-features",
"--",
"-D",
"warnings",
]
[tasks.lint-write]
install_crate = "clippy"
command = "cargo"
args = [
"clippy",
"--workspace",
"--all-targets",
"--all-features",
"--fix",
"--allow-dirty",
"--allow-staged",
"--",
"-D",
"warnings",
]
[tasks.build]
command = "cargo"
args = ["build", "--all-features"]
workspace = true
[tasks.test]
command = "cargo"
args = ["test", "--all-features", "--all-targets", "--workspace", "${@}"]
[tasks.test-coverage]
command = "cargo"
args = ["llvm-cov", "--all-features", "--all-targets", "--workspace", "${@}"]
[tasks.machete]
dependencies = ["setup-machete"]
command = "cargo"
args = ["machete"]
[tasks.setup-machete.install_crate]
crate_name = "cargo-machete"
binary = "machete"
test_arg = ["--help"]
install_command = "binstall"
force = true
[tasks.setup-llvm-cov.install_crate]
crate_name = "cargo-llvm-cov"
binary = "llvm-cov"
test_arg = ["--version"]
install_command = "binstall"
force = true