From d48c821dce13922374745af90d0e89119103fd59 Mon Sep 17 00:00:00 2001 From: ccamel Date: Mon, 16 Dec 2024 20:29:16 +0100 Subject: [PATCH] build(project): add lint-cargo-deps task --- Makefile.toml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Makefile.toml b/Makefile.toml index 46145b85..ecc95a30 100644 --- a/Makefile.toml +++ b/Makefile.toml @@ -33,6 +33,11 @@ command = "cargo-toml-lint" dependencies = ["install-cargo-toml-lint"] description = "Check lint of the given toml file" +[tasks.lint-cargo-deps] +args = ["machete", "--with-metadata"] +command = "cargo" +dependencies = ["install-cargo-machete"] + [tasks.format-toml] args = ["fmt"] command = "taplo" @@ -643,6 +648,7 @@ fi [tasks.install-cargo-hack] install_crate = { crate_name = "cargo-hack", min_version = "0.6.14" } + [tasks.install-cargo-machete] install_crate = { crate_name = "cargo-machete", min_version = "0.7.0" }