From 019260b41300cefe8d109a86290273e4955f8e0c Mon Sep 17 00:00:00 2001 From: Omar Abdulla Date: Mon, 10 Nov 2025 10:24:34 +0300 Subject: [PATCH] Switch to cargo-make --- Makefile | 15 --------------- Makefile.toml | 21 +++++++++++++++++++++ 2 files changed, 21 insertions(+), 15 deletions(-) delete mode 100644 Makefile create mode 100644 Makefile.toml diff --git a/Makefile b/Makefile deleted file mode 100644 index 285ae01..0000000 --- a/Makefile +++ /dev/null @@ -1,15 +0,0 @@ -.PHONY: format clippy test machete - -format: - cargo fmt --all -- --check - -clippy: - cargo clippy --all-features --workspace -- --deny warnings - -machete: - cargo install cargo-machete - cargo machete crates - -test: format clippy machete - cargo test --workspace -- --nocapture - diff --git a/Makefile.toml b/Makefile.toml new file mode 100644 index 0000000..5e44f24 --- /dev/null +++ b/Makefile.toml @@ -0,0 +1,21 @@ +[config] +default_to_workspace = false + +[tasks.machete] +command = "cargo" +args = ["machete", "crates"] +install_crate = "cargo-machete" + +[tasks.fmt-check] +command = "cargo" +args = ["fmt", "--all", "--", "--check"] +install_crate = "rustfmt" + +[tasks.clippy] +command = "cargo" +args = ["clippy", "--all-features", "--workspace", "--", "--deny", "warnings"] +install_crate = "clippy" + +[tasks.test] +command = "cargo" +args = ["test", "--workspace", "--", "--nocapture"]