-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathMakefile.toml
38 lines (30 loc) · 895 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
[config]
skip_core_tasks = true
default_to_workspace = false
[env]
__CARGO_FIX_YOLO=1
REPOSITORY_ROOT = { script = [ "git rev-parse --show-superproject-working-tree --show-toplevel" ] }
[tasks.fix]
command = "cargo"
args = [ "clippy", "--fix", "--allow-dirty", "--allow-staged" ]
[tasks.test]
command = "cargo"
args = [ "test" ]
[tasks.lint]
command = "cargo"
args = [ "clippy", "--", "-D", "warnings" ]
[tasks.udeps]
install_crate = { crate_name = "cargo-udeps" }
toolchain = "nightly"
command = "cargo"
args = [ "udeps", "--all-targets", "--all-features" ]
[tasks.sort]
install_crate = { crate_name = "cargo-sort" }
command = "cargo"
args = ["sort", "-wg"]
[tasks.format]
toolchain = "nightly"
command = "cargo"
args = [ "fmt", "--", "--config-path=${REPOSITORY_ROOT}/.cargo-husky/hooks/rustfmt.toml", "--emit=files" ]
[tasks.pretty]
dependencies = [ "fix", "test", "lint", "format" ]