aboutsummaryrefslogtreecommitdiff
path: root/Makefile.toml
diff options
context:
space:
mode:
authorFuwn <[email protected]>2021-06-24 15:06:43 -0700
committerFuwn <[email protected]>2021-06-24 15:06:43 -0700
commit2bccd50b7a11dda0ae239ce13efcdac118bfee92 (patch)
tree28f665461bb9746d70878071b11537d784a59842 /Makefile.toml
downloaddos-bot-2bccd50b7a11dda0ae239ce13efcdac118bfee92.tar.xz
dos-bot-2bccd50b7a11dda0ae239ce13efcdac118bfee92.zip
feat(dos-bot): :star:
Diffstat (limited to 'Makefile.toml')
-rw-r--r--Makefile.toml79
1 files changed, 79 insertions, 0 deletions
diff --git a/Makefile.toml b/Makefile.toml
new file mode 100644
index 0000000..969cb3b
--- /dev/null
+++ b/Makefile.toml
@@ -0,0 +1,79 @@
+# ------------
+# | 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
+
+# -------------
+# | Executors |
+# -------------
+[tasks.checkf]
+dependencies = ["fmt", "check"]
+
+[tasks.checkfc]
+dependencies = ["fmt", "check", "clippy"]
+
+[tasks.run]
+dependencies = ["checkf"]
+command = "cargo"
+args = ["run"]
+
+[tasks.runw]
+dependencies = ["checkf"]
+command = "cargo"
+args = ["run"]
+watch = true
+
+[tasks.docker-build]
+workspace = false
+command = "nix-build"
+args = ["docker.nix"]
+
+[tasks.docker-load]
+workspace = false
+script_runner = "@shell"
+script = '''
+docker load < result
+'''
+
+[tasks.docker-run]
+deprecated = true
+command = "docker"
+args = [
+ "run",
+ "--name", "DosBot",
+ "-v", "/var/lib/dos-bot:/.dos-bot",
+ "fuwn/dos-bot"
+]
+
+[tasks.docker-run-i]
+deprecated = true
+command = "docker"
+args = [
+ "run",
+ "-it",
+ "--name", "DosBot",
+ "-v", "/var/lib/dos-bot:/.dos-bot",
+ "fuwn/dos-bot"
+]
+
+# Build 'n' load
+[tasks.bnl]
+dependencies = ["docker-build", "docker-load"]
+
+[tasks.gen-docs]
+toolchain = "nightly"
+command = "cargo"
+args = ["doc", "--open", "--document-private-items", "--no-deps"]