From 4fb4b0617cb03c1187bd8757b6bac123ae60052a Mon Sep 17 00:00:00 2001 From: Julian Frimmel Date: Mon, 23 Sep 2024 19:00:41 +0200 Subject: [PATCH 1/4] Use more concise way of specifying dependencies This makes searching for dependencies in the `Cargo.toml` easier, since they are more neatly grouped into `[dependencies]`/`[dev-dependencies]`. --- Cargo.toml | 34 ++++++++++------------------------ 1 file changed, 10 insertions(+), 24 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index b7d4c2f..a8c6233 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -26,27 +26,13 @@ exclude = [ [features] default = ["textwrap"] -[dependencies.serde] -version = "1" -features = ["derive"] - -[dependencies.serde-xml-rs] -version = "0.5" -default-features = false - -[dependencies.colored] -version = "1.9.4" - -[dependencies.bytesize] -version = "1" - -[dependencies.textwrap] -version = "0.14" -optional = true -features = ["terminal_size"] - -[dev-dependencies.assert_cmd] -version = "2" - -[dev-dependencies.predicates] -version = "2" +[dependencies] +serde = { version = "1", features = ["derive"] } +serde-xml-rs = { version = "0.5", default-features = false } +colored = "1.9.4" +bytesize = "1" +textwrap = { version = "0.14", optional = true, features = ["terminal_size"] } + +[dev-dependencies] +assert_cmd = "2" +predicates = "2" From 5857cb1195c2c8ee25889bd31ce3482714f1a426 Mon Sep 17 00:00:00 2001 From: Julian Frimmel Date: Mon, 23 Sep 2024 19:02:34 +0200 Subject: [PATCH 2/4] Fix spelling of `subcommand` --- Cargo.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Cargo.toml b/Cargo.toml index a8c6233..1c10747 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -9,7 +9,7 @@ readme = "README.md" license = "MIT OR Apache-2.0" keywords = [ "cargo", - "subcomand", + "subcommand", "cargo-subcommand", "valgrind", "cli", From eedf5b8f3da2b476badf5f039e82c7bc82b524fc Mon Sep 17 00:00:00 2001 From: Julian Frimmel Date: Mon, 23 Sep 2024 19:04:33 +0200 Subject: [PATCH 3/4] Exclude some directories from published artifact Those are entirely intended for development and are not required for any user to be downloaded when installing the package. Therefore they can be excluded to save space and bandwidth. --- Cargo.toml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Cargo.toml b/Cargo.toml index 1c10747..7d20d6a 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -19,6 +19,8 @@ categories = [ "development-tools::cargo-plugins", ] exclude = [ + ".github", + ".vscode", "CHANGELOG.md", "tests", ] From 6569c2b5b5800e10523df66525aa84aed9e05583 Mon Sep 17 00:00:00 2001 From: Julian Frimmel Date: Mon, 23 Sep 2024 19:05:46 +0200 Subject: [PATCH 4/4] Format `Cargo.toml` This is done with the built-in formatter of the VS Code extension "Even Better TOML" (on default settings). --- Cargo.toml | 20 +++----------------- 1 file changed, 3 insertions(+), 17 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 7d20d6a..78e5b98 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -7,23 +7,9 @@ description = "A cargo subcommand for running valgrind" repository = "https://github.com/jfrimmel/cargo-valgrind" readme = "README.md" license = "MIT OR Apache-2.0" -keywords = [ - "cargo", - "subcommand", - "cargo-subcommand", - "valgrind", - "cli", -] -categories = [ - "development-tools", - "development-tools::cargo-plugins", -] -exclude = [ - ".github", - ".vscode", - "CHANGELOG.md", - "tests", -] +keywords = ["cargo", "subcommand", "cargo-subcommand", "valgrind", "cli"] +categories = ["development-tools", "development-tools::cargo-plugins"] +exclude = [".github", ".vscode", "CHANGELOG.md", "tests"] [features] default = ["textwrap"]