@@ -20,15 +20,12 @@ run_task = "_init"
2020
2121[tasks ._init ]
2222private = true
23- dependencies = [
24- " _init-vars" ,
25- ]
23+ dependencies = [" _init-vars" ]
2624
2725[tasks ._init-vars ]
2826private = true
2927script_runner = " @duckscript"
30- script = [
31- '''
28+ script = ['''
3229# reset build/test flags
3330set_env CARGO_MAKE_CARGO_BUILD_TEST_FLAGS ""
3431# determine features
@@ -90,54 +87,36 @@ for arg in "${args_utils_list}"
9087end
9188args_utils = trim "${args_utils}"
9289set_env CARGO_MAKE_TASK_BUILD_UTILS_ARGS "${args_utils}"
93- '''
94- ]
90+ ''' ]
9591
9692# ## tasks
9793
9894[tasks .default ]
9995description = " ## *DEFAULT* Build (debug-mode) and test project"
10096category = " [project]"
101- dependencies = [
102- " action-build-debug" ,
103- " test-terse" ,
104- ]
97+ dependencies = [" action-build-debug" , " test-terse" ]
10598
10699# #
107100
108101[tasks .build ]
109102description = " ## Build (release-mode) project"
110103category = " [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 ]
118107description = " ## Build (debug-mode) project"
119108category = " [project]"
120- dependencies = [
121- " action-build-debug" ,
122- ]
109+ dependencies = [" action-build-debug" ]
123110
124111[tasks .build-examples ]
125112description = " ## Build (release-mode) project example(s); usage: `cargo make (build-examples | examples) [EXAMPLE]...`"
126113category = " [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 ]
134117description = " ## Build (with features; release-mode) project; usage: `cargo make (build-features | features) FEATURE...`"
135118category = " [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 ]
143122alias = " build"
@@ -148,9 +127,7 @@ alias = "build-debug"
148127[tasks .example ]
149128description = " hidden singular-form alias for 'examples'"
150129category = " [project]"
151- dependencies = [
152- " examples" ,
153- ]
130+ dependencies = [" examples" ]
154131
155132[tasks .examples ]
156133alias = " build-examples"
@@ -161,17 +138,12 @@ alias = "build-features"
161138[tasks .format ]
162139description = " ## Format code files (with `cargo fmt`; includes tests)"
163140category = " [project]"
164- dependencies = [
165- " action-format" ,
166- " action-format-tests" ,
167- ]
141+ dependencies = [" action-format" , " action-format-tests" ]
168142
169143[tasks .help ]
170144description = " ## Display help"
171145category = " [project]"
172- dependencies = [
173- " action-display-help" ,
174- ]
146+ dependencies = [" action-display-help" ]
175147
176148[tasks .install ]
177149description = " ## Install project binary (to $HOME/.cargo/bin)"
@@ -182,59 +154,40 @@ args = ["install", "--path", "."]
182154[tasks .lint ]
183155description = " ## Display lint report"
184156category = " [project]"
185- dependencies = [
186- " action-clippy" ,
187- " action-fmt_report" ,
188- ]
157+ dependencies = [" action-clippy" , " action-fmt_report" ]
189158
190159[tasks .release ]
191160alias = " build"
192161
193162[tasks .test ]
194163description = " ## Run project tests"
195164category = " [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 ]
203168description = " ## Run project tests (with terse/summary output)"
204169category = " [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 ]
212173description = " ## Test (individual) utilities; usage: `cargo make (test-util | test-uutil) [UTIL_NAME...]`"
213174category = " [project]"
214- dependencies = [
215- " action-test-utils" ,
216- ]
175+ dependencies = [" action-test-utils" ]
217176
218177[tasks .test-utils ]
219178description = " hidden plural-form alias for 'test-util'"
220179category = " [project]"
221- dependencies = [
222- " test-util" ,
223- ]
180+ dependencies = [" test-util" ]
224181
225182[tasks .test-uutil ]
226183description = " hidden alias for 'test-util'"
227184category = " [project]"
228- dependencies = [
229- " test-util" ,
230- ]
185+ dependencies = [" test-util" ]
231186
232187[tasks .test-uutils ]
233188description = " hidden alias for 'test-util'"
234189category = " [project]"
235- dependencies = [
236- " test-util" ,
237- ]
190+ dependencies = [" test-util" ]
238191
239192[tasks .uninstall ]
240193description = " ## Remove project binary (from $HOME/.cargo/bin)"
@@ -246,63 +199,66 @@ args = ["uninstall"]
246199description = " ## Build (individual; release-mode) utilities; usage: `cargo make (util | uutil) [UTIL_NAME...]`"
247200category = " [project]"
248201dependencies = [
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 ]
256209description = " hidden plural-form alias for 'util'"
257210category = " [project]"
258- dependencies = [
259- " util" ,
260- ]
211+ dependencies = [" util" ]
261212
262213[tasks .uutil ]
263214description = " hidden alias for 'util'"
264215category = " [project]"
265- dependencies = [
266- " util" ,
267- ]
216+ dependencies = [" util" ]
268217
269218[tasks .uutils ]
270219description = " hidden plural-form alias for 'util'"
271220category = " [project]"
272- dependencies = [
273- " util" ,
274- ]
221+ dependencies = [" util" ]
275222
276223# ## actions
277224
278225[tasks .action-build-release ]
279226description = " `cargo build --release`"
280227command = " 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 ]
284231description = " `cargo build`"
285232command = " 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 ]
289236description = " `cargo build (--examples|(--example EXAMPLE)...)`"
290237command = " 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 ]
294246description = " `cargo build --release --features FEATURES`"
295247command = " 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 ]
299257description = " Build individual utilities"
300- dependencies = [
301- " action-determine-utils" ,
302- ]
258+ dependencies = [" action-determine-utils" ]
303259command = " 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 ]
308264description = " `cargo clippy` lint report"
@@ -311,8 +267,7 @@ args = ["clippy", "@@split(CARGO_MAKE_CARGO_BUILD_TEST_FLAGS, )"]
311267
312268[tasks .action-determine-utils ]
313269script_runner = " @duckscript"
314- script = [
315- '''
270+ script = ['''
316271package_options = get_env CARGO_MAKE_TASK_BUILD_UTILS_ARGS
317272if 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}"
336291end_if
337292set_env CARGO_MAKE_TASK_BUILD_UTILS_ARGS "${package_options}"
338- '''
339- ]
293+ ''' ]
340294
341295[tasks .action-determine-tests ]
342296script_runner = " @duckscript"
343- script = [
344- '''
297+ script = ['''
345298test_files = glob_array tests/**/*.rs
346299for file in ${test_files}
347300 file = replace "${file}" "\\" "/"
@@ -354,8 +307,7 @@ for file in ${test_files}
354307 end_if
355308end
356309set_env CARGO_MAKE_VAR_TESTS "${tests}"
357- '''
358- ]
310+ ''' ]
359311
360312[tasks .action-format ]
361313description = " `cargo fmt`"
@@ -364,9 +316,7 @@ args = ["fmt"]
364316
365317[tasks .action-format-tests ]
366318description = " `cargo fmt` tests"
367- dependencies = [
368- " action-determine-tests" ,
369- ]
319+ dependencies = [" action-determine-tests" ]
370320command = " cargo"
371321args = [" fmt" , " --" , " @@split(CARGO_MAKE_VAR_TESTS, )" ]
372322
@@ -381,16 +331,18 @@ args = ["fmt", "--", "--check"]
381331[tasks .action-spellcheck-codespell ]
382332description = " `codespell` spellcheck repository"
383333command = " 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 ]
387341description = " Build individual utilities"
388- dependencies = [
389- " action-determine-utils" ,
390- ]
342+ dependencies = [" action-determine-utils" ]
391343command = " 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 ]
396348description = " Test (in `--quiet` mode)"
@@ -399,8 +351,7 @@ args = ["test", "--quiet", "@@split(CARGO_MAKE_CARGO_BUILD_TEST_FLAGS, )"]
399351
400352[tasks .action-display-help ]
401353script_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