aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFuwn <[email protected]>2023-04-18 22:00:37 +0000
committerFuwn <[email protected]>2023-04-18 22:00:37 +0000
commitba8e9afc0b957e1a8e182b4d2fbd183432b1c304 (patch)
tree2ee4e79d2183a5ba21f5c695cb66fa0a6c38c2fe
parentci(cargo-make): fix runner definitions (diff)
downloadwindmark-ba8e9afc0b957e1a8e182b4d2fbd183432b1c304.tar.xz
windmark-ba8e9afc0b957e1a8e182b4d2fbd183432b1c304.zip
fix(cargo-make): example runner
-rw-r--r--Makefile.toml17
1 files changed, 13 insertions, 4 deletions
diff --git a/Makefile.toml b/Makefile.toml
index 06832aa..543059e 100644
--- a/Makefile.toml
+++ b/Makefile.toml
@@ -14,16 +14,18 @@ command = "cargo"
toolchain = "nightly"
[tasks.checkf]
-script_runner = "@shell"
script = '''
+#!@shell
+
cargo make fmt
cargo make check tokio
cargo make check async-std
'''
[tasks.checkfc]
-script_runner = "@shell"
script = '''
+#!@shell
+
cargo make fmt
cargo make check tokio
cargo make check async-std
@@ -61,5 +63,12 @@ command = "cargo"
args = ["doc", "--open", "--no-deps"]
[tasks.example]
-command = "cargo"
-args = ["run", "--example", "${@}", "--all-features"]
+script = '''
+#!@duckscript
+
+if is_empty ${2}
+ exec cargo run --example ${1} --no-default-features --features logger,auto-deduce-mime,response-macros,tokio
+else
+ exec cargo run --example ${1} --no-default-features --features logger,auto-deduce-mime,response-macros,${2}
+end
+'''