aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFuwn <[email protected]>2025-06-02 12:31:53 +0000
committerFuwn <[email protected]>2025-06-02 12:31:53 +0000
commit67654c7e5f96b515da1a39b132c6d21f30d978bd (patch)
treecddef3cbd7d552b0b42ee9da2c6dd682a93bd208
parentfix(container): Safely unwrap line fragment (diff)
downloadgerm-67654c7e5f96b515da1a39b132c6d21f30d978bd.tar.xz
germ-67654c7e5f96b515da1a39b132c6d21f30d978bd.zip
chore: Migrate to just from cargo-make
-rw-r--r--.gitignore3
-rw-r--r--Makefile.toml26
-rw-r--r--justfile21
3 files changed, 24 insertions, 26 deletions
diff --git a/.gitignore b/.gitignore
index 4ada455..d6cffe4 100644
--- a/.gitignore
+++ b/.gitignore
@@ -7,3 +7,6 @@ Cargo.lock
# Visual Studio Code
.vscode
+
+# Fuwn/justfiles
+*.just
diff --git a/Makefile.toml b/Makefile.toml
deleted file mode 100644
index d152803..0000000
--- a/Makefile.toml
+++ /dev/null
@@ -1,26 +0,0 @@
-[tasks.fmt]
-args = ["fmt"]
-command = "cargo"
-toolchain = "nightly"
-
-[tasks.check]
-args = ["check", "--all-features"]
-command = "cargo"
-
-[tasks.clippy]
-args = ["clippy", "--all-features"]
-command = "cargo"
-
-[tasks.test]
-args = ["test", "--all-features"]
-command = "cargo"
-
-[tasks.checkf]
-dependencies = ["fmt", "check"]
-
-[tasks.checkfc]
-dependencies = ["fmt", "check", "clippy"]
-
-[tasks.example]
-args = ["run", "--example", "${@}", "--all-features"]
-command = "cargo"
diff --git a/justfile b/justfile
new file mode 100644
index 0000000..9c142cc
--- /dev/null
+++ b/justfile
@@ -0,0 +1,21 @@
+import? 'cargo.just'
+
+set allow-duplicate-recipes := true
+
+default:
+ @just --list
+
+fetch:
+ curl https://raw.githubusercontent.com/Fuwn/justfiles/a6ca8a1b0475966ad10b68c44311ba3cb8b72a31/cargo.just > cargo.just
+
+fmt:
+ cargo +nightly fmt
+
+test:
+ cargo test --all-features
+
+docs:
+ cargo +nightly doc --open --no-deps
+
+example example:
+ cargo run --example {{ example }} --all-features