-
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Makefile.toml
65 lines (53 loc) · 1.46 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
[config]
default_to_workspace = true
skip_core_tasks = true
skip_git_env_info = true
skip_rust_env_info = true
skip_crate_env_info = true
[tasks.ignore-members]
workspace = false
[tasks.default]
alias = "check"
[tasks.clean]
description = "Clean all target directory"
command = "cargo"
args = ["clean"]
[tasks.fmt]
description = "Check format quality"
command = "cargo"
args = ["fmt", "--all", "--", "--check"]
[tasks.fix-fmt]
description = "Fix format"
command = "cargo"
args = ["fmt", "--all"]
[tasks.clippy]
description = "Check code quality"
command = "cargo"
args = ["clippy", "--", "-D", "warnings"]
[tasks.fix-clippy]
description = "Fix code quality"
command = "cargo"
args = ["fix", "--allow-dirty"]
[tasks.test]
description = "Check all unit test"
command = "cargo"
args = ["test"]
dependencies = ["fmt", "clippy"]
[tasks.check]
description = "Check all issues, format and code quality"
dependencies = ["fmt", "clippy", "test"]
[tasks.fix-all]
description = "Try fix all clippy and format issues"
dependencies = ["fix-fmt", "fix-clippy"]
# Improve performance compile times
# mold
# mold -run cargo run
# RUST_LOG=info,castle=debug cargo watch -c -d 0.1 -s 'mold -run cargo run'
[tasks.dev]
description = "Run binary/lib as dev"
script = "cargo watch -c -d 0.1 -s 'mold -run cargo run'"
[tasks.build]
description = "Generate release binary/lib"
dependencies = ["fmt", "clippy", "test"]
command = "cargo"
args = ["build", "--release", "--target", "x86_64-unknown-linux-musl"]