From a1ab028c81205e88128d39208b0536596229c2b1 Mon Sep 17 00:00:00 2001 From: Bauke Date: Sun, 21 Jan 2024 12:43:04 +0100 Subject: [PATCH] Redo the cargo-make configuration to make use of default tasks. --- Makefile.toml | 41 +++++++++++++++-------------------------- 1 file changed, 15 insertions(+), 26 deletions(-) diff --git a/Makefile.toml b/Makefile.toml index 5ee18b0..8644770 100644 --- a/Makefile.toml +++ b/Makefile.toml @@ -1,30 +1,19 @@ -[tasks.fmt] -command = "cargo" -args = ["fmt", "${@}"] - -[tasks.check] -command = "cargo" -args = ["check", "${@}"] - -[tasks.clippy] -command = "cargo" -args = ["clippy", "${@}"] - -[tasks.test] -command = "cargo" -args = ["test", "${@}"] - -[tasks.doc] -command = "cargo" -args = ["doc", "${@}"] - -[tasks.build] -command = "cargo" -args = ["build", "${@}"] - +# Do a full check of everything. [tasks.complete-check] -dependencies = ["fmt", "check", "clippy", "test", "doc", "build"] +dependencies = [ + "clean", + "format", + "check", + "clippy", + "test", + "code-coverage", + "docs", + "build", + "audit-flow", + "outdated-flow" +] +# Run cargo-tarpaulin and output the test coverage. [tasks.code-coverage] workspace = false command = "cargo" @@ -34,5 +23,5 @@ args = [ "--out=html", "--output-dir=coverage", "--skip-clean", - "--target-dir=target/tarpaulin" + "--target-dir=target/tarpaulin", ]