From a8a75dd44546fe8a86107263aceca52da2a89d3f Mon Sep 17 00:00:00 2001 From: Michel von Czettritz Date: Wed, 28 Aug 2024 21:57:47 +0200 Subject: [PATCH] extend make file --- Cargo.toml | 3 --- Makefile.toml | 13 ++++++++++++- 2 files changed, 12 insertions(+), 4 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 7a8a413..1d12973 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -20,9 +20,6 @@ exclude = [ "tags", ] -[build] -target = ["x86_64-unknown-linux-gnu", "i686-unknown-linux-gnu"] - [dependencies] reqwest = { version = "0.12", features = ["json"] } tokio = { version = "1", features = ["full"] } diff --git a/Makefile.toml b/Makefile.toml index 95f38a4..e83e25b 100644 --- a/Makefile.toml +++ b/Makefile.toml @@ -10,6 +10,10 @@ alias = "ci" description = "Run continuous integration tasks" dependencies = ["lint", "clippy", "check", "test"] +[tasks.all] +description = "Run all tasks" +dependencies = ["lint", "clippy", "check", "audit", "build", "coverage-text"] + [tasks.clippy] description = "Run Clippy for linting" @@ -29,7 +33,7 @@ args = [ [tasks.lint] description = "Lint code style (formatting, typos, docs, markdown)" -dependencies = ["lint-format"] +dependencies = ["lint-format", "lint-typos"] [tasks.lint-format] description = "Lint code formatting" @@ -67,6 +71,13 @@ args = [ "target/lcov.info", ] +[tasks.coverage-text] +description = "Generate code coverage report" +command = "cargo" +args = [ + "llvm-cov", +] + [tasks.build] command = "cargo" args = ["build"]