-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile.toml
144 lines (114 loc) · 3.42 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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
[tasks.ci]
dependencies = ["build", "test", "lint"]
###############################################################################
# build all variants
###############################################################################
[tasks.build-default-features]
command = "cargo"
args = ["build"]
[tasks.build-no-default-features]
command = "cargo"
args = ["build", "--no-default-features"]
[tasks.build-all-features]
command = "cargo"
args = ["build", "--all-features"]
[tasks.build-zip-only]
command = "cargo"
args = ["build", "--no-default-features", "-F", "zip"]
[tasks.build-tar-only]
command = "cargo"
args = ["build", "--no-default-features", "-F", "tar"]
[tasks.build-gzip-only]
command = "cargo"
args = ["build", "--no-default-features", "-F", "gzip"]
[tasks.build-xz-only]
command = "cargo"
args = ["build", "--no-default-features", "-F", "xz"]
[tasks.build-bzip-only]
command = "cargo"
args = ["build", "--no-default-features", "-F", "bzip"]
[tasks.build-zstd-only]
command = "cargo"
args = ["build", "--no-default-features", "-F", "zstd"]
[tasks.build-download-only]
command = "cargo"
args = ["build", "--no-default-features", "-F", "download"]
[tasks.build]
dependencies = [
"build-default-features",
"build-no-default-features",
"build-all-features",
"build-zip-only",
"build-tar-only",
"build-gzip-only",
"build-xz-only",
"build-bzip-only",
"build-zstd-only",
"build-download-only",
]
###############################################################################
# test all variants
###############################################################################
[tasks.test-default-features]
command = "cargo"
args = ["test"]
[tasks.test-no-default-features]
command = "cargo"
args = ["test", "--no-default-features"]
[tasks.test-all-features]
command = "cargo"
args = ["test", "--all-features"]
[tasks.test-zip-only]
command = "cargo"
args = ["test", "--no-default-features", "-F", "zip"]
[tasks.test-tar-only]
command = "cargo"
args = ["test", "--no-default-features", "-F", "tar"]
[tasks.test-gzip-only]
command = "cargo"
args = ["test", "--no-default-features", "-F", "gzip", "-F", "tar"]
[tasks.test-xz-only]
command = "cargo"
args = ["test", "--no-default-features", "-F", "xz", "-F", "tar"]
[tasks.test-bzip-only]
command = "cargo"
args = ["test", "--no-default-features", "-F", "bzip", "-F", "tar"]
[tasks.test-zstd-only]
command = "cargo"
args = ["test", "--no-default-features", "-F", "zstd", "-F", "tar"]
[tasks.test-download-only]
command = "cargo"
args = ["test", "--no-default-features", "-F", "download", "-F", "tar"]
[tasks.test]
dependencies = [
"test-default-features",
"test-no-default-features",
"test-all-features",
"test-zip-only",
"test-tar-only",
"test-gzip-only",
"test-xz-only",
"test-bzip-only",
"test-zstd-only",
"build-download-only",
]
###############################################################################
# lint
###############################################################################
[tasks.clippy]
command = "cargo"
args = ["clippy", "--all-targets", "--all-features", "--tests"]
[tasks.doc]
command = "cargo"
args = ["doc", "--all-features"]
[tasks.audit]
command = "cargo"
args = ["audit"]
[tasks.publish-dry-run]
command = "cargo"
args = ["publish", "--dry-run"]
[tasks.package-list]
command = "cargo"
args = ["package", "--list"]
[tasks.lint]
dependencies = ["clippy", "doc", "audit", "publish-dry-run", "package-list"]