-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdev.toml
43 lines (35 loc) · 768 Bytes
/
dev.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
# Refer to the documentation : https://crates.io/crates/cargo-make
[env]
CARGO_MAKE_EXTEND_WORKSPACE_MAKEFILE = true
[tasks.clean]
command = "cargo"
args = ["clean"]
[tasks.format]
install_crate = "rustfmt"
command = "cargo"
args = ["fmt", "--", "--emit=files"]
dependencies = ["clean"]
[tasks.clippy]
install_crate = "rustfmt"
command = "cargo"
args = ["clippy", "--","-D","warnings"]
dependencies = ["format"]
[tasks.test]
install_crate = "cargo-nextest"
command = "cargo"
args = ["nextest", "run"]
dependencies = ["clippy"]
[tasks.build]
command = "cargo"
args = ["build"]
dependencies = ["test"]
[tasks.stats]
script = '''
#!/usr/bin/env bash
cargo install tokei && tokei
'''
dependencies = ["build"]
[tasks.runner]
run_task = [
{ name = ["stats"] },
]