aboutsummaryrefslogtreecommitdiff
path: root/Makefile.toml
diff options
context:
space:
mode:
authorFuwn <[email protected]>2022-03-30 03:04:48 -0700
committerFuwn <[email protected]>2022-03-30 03:04:48 -0700
commit0495bd1837087a91a36036dbaab71c83c3acc197 (patch)
tree6f1744db3bf9a7eb07da70971f0b2aa39741a0b0 /Makefile.toml
downloadlocus-0495bd1837087a91a36036dbaab71c83c3acc197.tar.xz
locus-0495bd1837087a91a36036dbaab71c83c3acc197.zip
feat: 0.0.0 :star:
Diffstat (limited to 'Makefile.toml')
-rw-r--r--Makefile.toml69
1 files changed, 69 insertions, 0 deletions
diff --git a/Makefile.toml b/Makefile.toml
new file mode 100644
index 0000000..2269370
--- /dev/null
+++ b/Makefile.toml
@@ -0,0 +1,69 @@
+# ------------
+# | 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"]
+
+# openssl req -x509 -newkey rsa:4096 -keyout windmark_private.pem -out windmark_public.pem -days 365
+
+[tasks.genkey]
+command = "openssl"
+args = [
+ "req",
+ "-newkey",
+ "rsa:2048",
+ "-new",
+ "-nodes",
+ "-keyout",
+ "windmark_private.pem",
+ "-out",
+ "windmark_public.pem",
+ "-subj",
+ "/CN=fuwn.me"
+]
+
+[tasks.fixkey]
+command = "openssl"
+args = [
+ "x509",
+ "-req",
+ "-days",
+ "365",
+ "-in",
+ "windmark_public.pem",
+ "-signkey",
+ "windmark_private.pem",
+ "-out",
+ "windmark_pair.pem"
+]
+
+[tasks.run]
+dependencies = ["checkfc"]
+command = "cargo"
+args = ["run", "--", "{@}"]
+
+[tasks.docker-build]
+dependencies = ["checkfc"]
+command = "docker"
+args = ["build", "-t", "fuwn/locus", "."]