-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile.toml
41 lines (34 loc) · 1.12 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
[env]
CARGO_MAKE_EXTEND_WORKSPACE_MAKEFILE = true
[config]
skip_core_tasks = true
[tasks.build]
description = "Runs the rust compiler."
category = "Build"
install_crate = false
command = "cargo"
args = [
"build",
"@@remove-empty(CARGO_MAKE_CARGO_VERBOSE_FLAGS)",
"@@split(CARGO_MAKE_CARGO_BUILD_TEST_FLAGS, )",
]
[tasks.fmt-check]
description = "Runs the cargo rustfmt plugin to check everything is well formatted"
command = "cargo"
args = ["fmt", "--", "--check"]
[tasks.test]
command = "cargo"
args = ["test", "${@}", "--all-features", "--workspace"]
[tasks.clippy]
description = "Run clippy"
command = "cargo"
args = ["clippy", "--all-targets", "--all-features", "--workspace", "--", "-D", "warnings"]
[tasks.docs]
description = "Build docs as they are rendered on docs.rs"
command = "cargo"
args = ["doc", "--document-private-items", "--all-features", "--workspace", "--no-deps"]
env = { "RUSTDOCFLAGS" = "-Dwarnings" }
[tasks.release]
description = "Task to release the package to crates.io"
command = "cargo"
args = ["release", "publish", "--no-confirm", "--allow-branch", "*", "--all-features", "--workspace", "--execute"]