From f9bfe86ad6418c1672a5e5870977bea1b1ff8d0e Mon Sep 17 00:00:00 2001 From: Bauke Date: Sun, 21 Jan 2024 13:50:11 +0100 Subject: [PATCH] Redo the cargo-make configuration to make use of default tasks. --- Makefile.toml | 40 ++++++++++++++-------------------------- 1 file changed, 14 insertions(+), 26 deletions(-) diff --git a/Makefile.toml b/Makefile.toml index abf5d82..d2f1d28 100644 --- a/Makefile.toml +++ b/Makefile.toml @@ -1,36 +1,24 @@ [env] CARGO_MAKE_EXTEND_WORKSPACE_MAKEFILE = true -[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 -install_crate = "cargo-tarpaulin" command = "cargo" args = [ "tarpaulin",