-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile.toml
More file actions
90 lines (75 loc) · 1.45 KB
/
Makefile.toml
File metadata and controls
90 lines (75 loc) · 1.45 KB
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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
# Format
# | task | type | cwd |
# | ------------ | --------- | --- |
# | fmt | composite | |
# | fmt-check | composite | |
# | fmt-rust | script | |
# | fmt-rust-check| extend | |
[tasks.fmt]
workspace = false
dependencies = ["fmt-rust"]
[tasks.fmt-check]
workspace = false
dependencies = ["fmt-rust-check"]
[tasks.fmt-rust]
workspace = false
script = "cargo +nightly fmt ${FMT_RUST_ARGS}"
env = { FMT_RUST_ARGS = "" }
[tasks.fmt-rust-check]
workspace = false
extend = "fmt-rust"
env = { FMT_RUST_ARGS = "-- --check" }
# Lint
# | task | type | cwd |
# | ---- | ------- | --- |
# | lint | command | |
# | lint-fix | command | |
[tasks.lint]
workspace = false
command = "cargo"
args = [
"clippy",
"--all-targets",
"--all-features",
"--",
"-D",
"warnings"
]
[tasks.lint-fix]
workspace = false
command = "cargo"
args = [
"clippy",
"--fix",
"--allow-dirty",
"--all-targets",
"--all-features"
]
# Test
# | task | type | cwd |
# | ---------- | ------- | --- |
# | test | command | |
# | test-redis | command | |
[tasks.test]
workspace = false
command = "cargo"
args = ["test"]
[tasks.test-redis]
workspace = false
command = "cargo"
args = [
"test",
"--features",
"redis"
]
# Meta
# | task | type | cwd |
# | ------ | --------- | --- |
# | checks | composite | |
[tasks.checks]
workspace = false
dependencies = [
"fmt-check",
"lint",
"test"
]