-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathMakefile.toml
68 lines (51 loc) · 1.13 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
66
67
68
[config]
skip_core_tasks = true
default_to_workspace = false
[env]
RUST_BACKTRACE = "1"
[env.development]
RUST_BACKTRACE = "full"
#
# Checks
#
[tasks.fmt]
command = "cargo"
args = ["fmt", "--all", "--", "--check", "--files-with-diff"]
[tasks.clippy]
command = "cargo"
args = ["clippy", "--all-targets", "--all-features", "--", "-D", "warnings"]
#
# Build
#
[tasks.build-debug]
command = "cargo"
args = ["build", "--workspace", "--all-targets", "--all-features"]
[tasks.build-release]
command = "cargo"
args = ["build", "--workspace", "--release"]
[tasks.build]
run_task = [
{ name = "build-debug", condition = { profiles = ["development"] } },
{ name = "build-release", condition = { profiles = ["production"] } },
]
[tasks.build-fast]
command = "cargo"
args = ["check"]
#
# Tests
#
[tasks.tests]
command = "cargo"
args = ["test", "--workspace", "--no-fail-fast"]
[tasks.tests-ci]
command = "cargo"
args = ["test", "--workspace"]
#
# Top level targets
#
[tasks.linters]
dependencies = ["fmt", "clippy"]
[tasks.ci]
dependencies = ["linters", "build-debug", "tests-ci"]
[tasks.default]
dependencies = ["linters", "build-fast", "tests"]