Skip to content

Commit 6ecef3a

Browse files
committed
Reformat TOML files with taplo
npx --yes @taplo/cli fmt
1 parent e115ee5 commit 6ecef3a

File tree

110 files changed

+844
-861
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

110 files changed

+844
-861
lines changed

Cargo.toml

Lines changed: 310 additions & 310 deletions
Large diffs are not rendered by default.

Makefile.toml

Lines changed: 56 additions & 106 deletions
Original file line numberDiff line numberDiff line change
@@ -20,15 +20,12 @@ run_task = "_init"
2020

2121
[tasks._init]
2222
private = true
23-
dependencies = [
24-
"_init-vars",
25-
]
23+
dependencies = ["_init-vars"]
2624

2725
[tasks._init-vars]
2826
private = true
2927
script_runner = "@duckscript"
30-
script = [
31-
'''
28+
script = ['''
3229
# reset build/test flags
3330
set_env CARGO_MAKE_CARGO_BUILD_TEST_FLAGS ""
3431
# determine features
@@ -90,54 +87,36 @@ for arg in "${args_utils_list}"
9087
end
9188
args_utils = trim "${args_utils}"
9289
set_env CARGO_MAKE_TASK_BUILD_UTILS_ARGS "${args_utils}"
93-
'''
94-
]
90+
''']
9591

9692
### tasks
9793

9894
[tasks.default]
9995
description = "## *DEFAULT* Build (debug-mode) and test project"
10096
category = "[project]"
101-
dependencies = [
102-
"action-build-debug",
103-
"test-terse",
104-
]
97+
dependencies = ["action-build-debug", "test-terse"]
10598

10699
##
107100

108101
[tasks.build]
109102
description = "## Build (release-mode) project"
110103
category = "[project]"
111-
dependencies = [
112-
"core::pre-build",
113-
"action-build-release",
114-
"core::post-build",
115-
]
104+
dependencies = ["core::pre-build", "action-build-release", "core::post-build"]
116105

117106
[tasks.build-debug]
118107
description = "## Build (debug-mode) project"
119108
category = "[project]"
120-
dependencies = [
121-
"action-build-debug",
122-
]
109+
dependencies = ["action-build-debug"]
123110

124111
[tasks.build-examples]
125112
description = "## Build (release-mode) project example(s); usage: `cargo make (build-examples | examples) [EXAMPLE]...`"
126113
category = "[project]"
127-
dependencies = [
128-
"core::pre-build",
129-
"action-build-examples",
130-
"core::post-build",
131-
]
114+
dependencies = ["core::pre-build", "action-build-examples", "core::post-build"]
132115

133116
[tasks.build-features]
134117
description = "## Build (with features; release-mode) project; usage: `cargo make (build-features | features) FEATURE...`"
135118
category = "[project]"
136-
dependencies = [
137-
"core::pre-build",
138-
"action-build-features",
139-
"core::post-build",
140-
]
119+
dependencies = ["core::pre-build", "action-build-features", "core::post-build"]
141120

142121
[tasks.build-release]
143122
alias = "build"
@@ -148,9 +127,7 @@ alias = "build-debug"
148127
[tasks.example]
149128
description = "hidden singular-form alias for 'examples'"
150129
category = "[project]"
151-
dependencies = [
152-
"examples",
153-
]
130+
dependencies = ["examples"]
154131

155132
[tasks.examples]
156133
alias = "build-examples"
@@ -161,17 +138,12 @@ alias = "build-features"
161138
[tasks.format]
162139
description = "## Format code files (with `cargo fmt`; includes tests)"
163140
category = "[project]"
164-
dependencies = [
165-
"action-format",
166-
"action-format-tests",
167-
]
141+
dependencies = ["action-format", "action-format-tests"]
168142

169143
[tasks.help]
170144
description = "## Display help"
171145
category = "[project]"
172-
dependencies = [
173-
"action-display-help",
174-
]
146+
dependencies = ["action-display-help"]
175147

176148
[tasks.install]
177149
description = "## Install project binary (to $HOME/.cargo/bin)"
@@ -182,59 +154,40 @@ args = ["install", "--path", "."]
182154
[tasks.lint]
183155
description = "## Display lint report"
184156
category = "[project]"
185-
dependencies = [
186-
"action-clippy",
187-
"action-fmt_report",
188-
]
157+
dependencies = ["action-clippy", "action-fmt_report"]
189158

190159
[tasks.release]
191160
alias = "build"
192161

193162
[tasks.test]
194163
description = "## Run project tests"
195164
category = "[project]"
196-
dependencies = [
197-
"core::pre-test",
198-
"core::test",
199-
"core::post-test",
200-
]
165+
dependencies = ["core::pre-test", "core::test", "core::post-test"]
201166

202167
[tasks.test-terse]
203168
description = "## Run project tests (with terse/summary output)"
204169
category = "[project]"
205-
dependencies = [
206-
"core::pre-test",
207-
"action-test_quiet",
208-
"core::post-test",
209-
]
170+
dependencies = ["core::pre-test", "action-test_quiet", "core::post-test"]
210171

211172
[tasks.test-util]
212173
description = "## Test (individual) utilities; usage: `cargo make (test-util | test-uutil) [UTIL_NAME...]`"
213174
category = "[project]"
214-
dependencies = [
215-
"action-test-utils",
216-
]
175+
dependencies = ["action-test-utils"]
217176

218177
[tasks.test-utils]
219178
description = "hidden plural-form alias for 'test-util'"
220179
category = "[project]"
221-
dependencies = [
222-
"test-util",
223-
]
180+
dependencies = ["test-util"]
224181

225182
[tasks.test-uutil]
226183
description = "hidden alias for 'test-util'"
227184
category = "[project]"
228-
dependencies = [
229-
"test-util",
230-
]
185+
dependencies = ["test-util"]
231186

232187
[tasks.test-uutils]
233188
description = "hidden alias for 'test-util'"
234189
category = "[project]"
235-
dependencies = [
236-
"test-util",
237-
]
190+
dependencies = ["test-util"]
238191

239192
[tasks.uninstall]
240193
description = "## Remove project binary (from $HOME/.cargo/bin)"
@@ -246,63 +199,66 @@ args = ["uninstall"]
246199
description = "## Build (individual; release-mode) utilities; usage: `cargo make (util | uutil) [UTIL_NAME...]`"
247200
category = "[project]"
248201
dependencies = [
249-
"core::pre-build",
250-
"action-determine-utils",
251-
"action-build-utils",
252-
"core::post-build",
202+
"core::pre-build",
203+
"action-determine-utils",
204+
"action-build-utils",
205+
"core::post-build",
253206
]
254207

255208
[tasks.utils]
256209
description = "hidden plural-form alias for 'util'"
257210
category = "[project]"
258-
dependencies = [
259-
"util",
260-
]
211+
dependencies = ["util"]
261212

262213
[tasks.uutil]
263214
description = "hidden alias for 'util'"
264215
category = "[project]"
265-
dependencies = [
266-
"util",
267-
]
216+
dependencies = ["util"]
268217

269218
[tasks.uutils]
270219
description = "hidden plural-form alias for 'util'"
271220
category = "[project]"
272-
dependencies = [
273-
"util",
274-
]
221+
dependencies = ["util"]
275222

276223
### actions
277224

278225
[tasks.action-build-release]
279226
description = "`cargo build --release`"
280227
command = "cargo"
281-
args = ["build", "--release", "@@split(CARGO_MAKE_CARGO_BUILD_TEST_FLAGS, )" ]
228+
args = ["build", "--release", "@@split(CARGO_MAKE_CARGO_BUILD_TEST_FLAGS, )"]
282229

283230
[tasks.action-build-debug]
284231
description = "`cargo build`"
285232
command = "cargo"
286-
args = ["build", "@@split(CARGO_MAKE_CARGO_BUILD_TEST_FLAGS, )" ]
233+
args = ["build", "@@split(CARGO_MAKE_CARGO_BUILD_TEST_FLAGS, )"]
287234

288235
[tasks.action-build-examples]
289236
description = "`cargo build (--examples|(--example EXAMPLE)...)`"
290237
command = "cargo"
291-
args = ["build", "--release", "@@split(CARGO_MAKE_CARGO_BUILD_TEST_FLAGS, )", "${CARGO_MAKE_TASK_BUILD_EXAMPLES_ARGS}" ]
238+
args = [
239+
"build",
240+
"--release",
241+
"@@split(CARGO_MAKE_CARGO_BUILD_TEST_FLAGS, )",
242+
"${CARGO_MAKE_TASK_BUILD_EXAMPLES_ARGS}",
243+
]
292244

293245
[tasks.action-build-features]
294246
description = "`cargo build --release --features FEATURES`"
295247
command = "cargo"
296-
args = ["build", "--release", "--no-default-features", "--features", "${CARGO_MAKE_TASK_BUILD_FEATURES_ARGS}" ]
248+
args = [
249+
"build",
250+
"--release",
251+
"--no-default-features",
252+
"--features",
253+
"${CARGO_MAKE_TASK_BUILD_FEATURES_ARGS}",
254+
]
297255

298256
[tasks.action-build-utils]
299257
description = "Build individual utilities"
300-
dependencies = [
301-
"action-determine-utils",
302-
]
258+
dependencies = ["action-determine-utils"]
303259
command = "cargo"
304260
# args = ["build", "@@remove-empty(CARGO_MAKE_TASK_BUILD_UTILS_ARGS)" ]
305-
args = ["build", "--release", "@@split(CARGO_MAKE_TASK_BUILD_UTILS_ARGS, )" ]
261+
args = ["build", "--release", "@@split(CARGO_MAKE_TASK_BUILD_UTILS_ARGS, )"]
306262

307263
[tasks.action-clippy]
308264
description = "`cargo clippy` lint report"
@@ -311,8 +267,7 @@ args = ["clippy", "@@split(CARGO_MAKE_CARGO_BUILD_TEST_FLAGS, )"]
311267

312268
[tasks.action-determine-utils]
313269
script_runner = "@duckscript"
314-
script = [
315-
'''
270+
script = ['''
316271
package_options = get_env CARGO_MAKE_TASK_BUILD_UTILS_ARGS
317272
if is_empty "${package_options}"
318273
show_utils = get_env CARGO_MAKE_VAR_SHOW_UTILS
@@ -335,13 +290,11 @@ if is_empty "${package_options}"
335290
package_options = trim "${package_options}"
336291
end_if
337292
set_env CARGO_MAKE_TASK_BUILD_UTILS_ARGS "${package_options}"
338-
'''
339-
]
293+
''']
340294

341295
[tasks.action-determine-tests]
342296
script_runner = "@duckscript"
343-
script = [
344-
'''
297+
script = ['''
345298
test_files = glob_array tests/**/*.rs
346299
for file in ${test_files}
347300
file = replace "${file}" "\\" "/"
@@ -354,8 +307,7 @@ for file in ${test_files}
354307
end_if
355308
end
356309
set_env CARGO_MAKE_VAR_TESTS "${tests}"
357-
'''
358-
]
310+
''']
359311

360312
[tasks.action-format]
361313
description = "`cargo fmt`"
@@ -364,9 +316,7 @@ args = ["fmt"]
364316

365317
[tasks.action-format-tests]
366318
description = "`cargo fmt` tests"
367-
dependencies = [
368-
"action-determine-tests",
369-
]
319+
dependencies = ["action-determine-tests"]
370320
command = "cargo"
371321
args = ["fmt", "--", "@@split(CARGO_MAKE_VAR_TESTS, )"]
372322

@@ -381,16 +331,18 @@ args = ["fmt", "--", "--check"]
381331
[tasks.action-spellcheck-codespell]
382332
description = "`codespell` spellcheck repository"
383333
command = "codespell" # (from `pip install codespell`)
384-
args = [".", "--skip=*/.git,./target,./tests/fixtures", "--ignore-words-list=mut,od"]
334+
args = [
335+
".",
336+
"--skip=*/.git,./target,./tests/fixtures",
337+
"--ignore-words-list=mut,od",
338+
]
385339

386340
[tasks.action-test-utils]
387341
description = "Build individual utilities"
388-
dependencies = [
389-
"action-determine-utils",
390-
]
342+
dependencies = ["action-determine-utils"]
391343
command = "cargo"
392344
# args = ["build", "@@remove-empty(CARGO_MAKE_TASK_BUILD_UTILS_ARGS)" ]
393-
args = ["test", "@@split(CARGO_MAKE_TASK_BUILD_UTILS_ARGS, )" ]
345+
args = ["test", "@@split(CARGO_MAKE_TASK_BUILD_UTILS_ARGS, )"]
394346

395347
[tasks.action-test_quiet]
396348
description = "Test (in `--quiet` mode)"
@@ -399,8 +351,7 @@ args = ["test", "--quiet", "@@split(CARGO_MAKE_CARGO_BUILD_TEST_FLAGS, )"]
399351

400352
[tasks.action-display-help]
401353
script_runner = "@duckscript"
402-
script = [
403-
'''
354+
script = ['''
404355
echo ""
405356
echo "usage: `cargo make TARGET [ARGS...]`"
406357
echo ""
@@ -432,5 +383,4 @@ script = [
432383
end_if
433384
end
434385
echo ""
435-
'''
436-
]
386+
''']

0 commit comments

Comments
 (0)