-
Notifications
You must be signed in to change notification settings - Fork 4
/
Makefile.toml
43 lines (34 loc) · 965 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
39
40
41
42
43
[tasks.clean]
description = "Clean target directory"
command = "cargo"
args = ["clean"]
[tasks.build]
description = "Run cargo build"
command = "cargo"
args = ["build", "--workspace"]
[tasks.fmt]
condition = { channels = ["nightly"] }
description = "Check whether rust code is properly formatted or not"
command = "cargo"
args = ["fmt", "--", "--check"]
[tasks.clippy]
condition = { channels = ["nightly"] }
description = "Check if clippy return any warnings or error"
command = "cargo"
args = ["clippy", "--workspace", "--", "-D", "warnings"]
[tasks.test]
description = "Run test"
command = "cargo"
args = ["test", "--workspace"]
[tasks.doc]
description = "Run rustdoc"
command = "cargo"
args = ["doc", "--workspace", "--no-deps"]
[tasks.rustdoc]
description = "Run rustdoc"
command = "cargo"
args = ["rustdoc", "--", "--cfg", "docsrs"]
[tasks.local]
dependencies = ["fmt", "build", "clippy", "doc", "test"]
[tasks.full]
dependencies = ["clean", "local"]