-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile.toml
More file actions
38 lines (30 loc) · 803 Bytes
/
Makefile.toml
File metadata and controls
38 lines (30 loc) · 803 Bytes
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
# ---- BASIC ----
[tasks.watch]
description = "Watch files and recompile the project on change"
run_task = [
{ name = ["test", "clippy"] },
#{ name = ["clippy", "test"] },
]
watch = true
# ---- BUILD ----
[tasks.build]
command = "cargo"
args = ["build"]
[tasks.build_release]
command = "cargo"
args = ["build", "--release"]
# ---- LINT ----
[tasks.clippy]
description = "Lint with Clippy"
install_crate = { rustup_component_name = "clippy", binary = "cargo-clippy", test_arg = "--help" }
command = "cargo"
args = ["clippy"]
[tasks.fmt]
description = "Format with rustfmt"
install_crate = { rustup_component_name = "rustfmt", binary = "rustfmt", test_arg = "-V" }
command = "cargo"
args = ["fmt"]
[tasks.test]
description = "Test"
command = "cargo"
args = ["test", "--", "--show-output"]