aboutsummaryrefslogtreecommitdiff
path: root/Makefile.toml
diff options
context:
space:
mode:
authorFuwn <[email protected]>2022-02-07 12:26:07 +0000
committerFuwn <[email protected]>2025-06-09 07:46:03 +0000
commit4ace7cad20545d585d2ce8c5e93e4dc43358801b (patch)
tree043b73bdd939f955f2b4d1e6309c8b697d6e0544 /Makefile.toml
downloaddivina-4ace7cad20545d585d2ce8c5e93e4dc43358801b.tar.xz
divina-4ace7cad20545d585d2ce8c5e93e4dc43358801b.zip
feat(divina): pre-release :star:
Diffstat (limited to 'Makefile.toml')
-rw-r--r--Makefile.toml60
1 files changed, 60 insertions, 0 deletions
diff --git a/Makefile.toml b/Makefile.toml
new file mode 100644
index 0000000..af2911f
--- /dev/null
+++ b/Makefile.toml
@@ -0,0 +1,60 @@
+# -------------
+# | Variables |
+# -------------
+[env]
+CARGO_MAKE_EXTEND_WORKSPACE_MAKEFILE = true
+
+# ------------
+# | Wrappers |
+# ------------
+[tasks.fmt]
+command = "cargo"
+args = ["fmt"]
+private = true
+
+[tasks.check]
+command = "cargo"
+args = ["check"]
+private = true
+
+[tasks.clippy]
+command = "cargo"
+args = ["clippy"]
+private = true
+
+[tasks.test]
+command = "cargo"
+args = ["test"]
+private = true
+
+[tasks.bench]
+command = "cargo"
+args = ["bench"]
+private = true
+
+# -------------
+# | Executors |
+# -------------
+[tasks.checkf]
+workspace = false
+dependencies = ["fmt", "check"]
+
+[tasks.checkfc]
+workspace = false
+dependencies = ["fmt", "check", "clippy"]
+
+[tasks.checkall]
+workspace = false
+dependencies = ["fmt", "check", "clippy", "test", "bench"]
+
+[tasks.docs]
+workspace = false
+toolchain = "nightly"
+command = "cargo"
+args = ["doc", "--open", "--document-private-items", "--no-deps"]
+
+[tasks.run]
+workspace = false
+dependencies = ["checkfc"]
+command = "cargo"
+args = ["run", "--bin", "divina", "${@}"]