From 87d2087a7a5dfacb37579d2b4060c7334804d6f8 Mon Sep 17 00:00:00 2001 From: Julian Stecklina Date: Sun, 29 Oct 2023 19:39:53 +0100 Subject: [PATCH] tool: drop unused dependencies via machete --- rust/tool/Cargo.lock | 10 ---------- rust/tool/shared/Cargo.toml | 11 ----------- rust/tool/systemd/Cargo.toml | 3 +-- 3 files changed, 1 insertion(+), 23 deletions(-) diff --git a/rust/tool/Cargo.lock b/rust/tool/Cargo.lock index 1f15e70..99d03ab 100644 --- a/rust/tool/Cargo.lock +++ b/rust/tool/Cargo.lock @@ -444,21 +444,12 @@ name = "lanzaboote_tool" version = "0.3.0" dependencies = [ "anyhow", - "assert_cmd", "bootspec", - "clap", - "expect-test", "fastrand", - "filetime", "goblin", - "indoc", "log", - "nix", - "rand", - "serde", "serde_json", "sha2", - "stderrlog", "tempfile", "time", "walkdir", @@ -498,7 +489,6 @@ dependencies = [ "log", "nix", "rand", - "serde", "serde_json", "sha2", "stderrlog", diff --git a/rust/tool/shared/Cargo.toml b/rust/tool/shared/Cargo.toml index 162ad50..959147d 100644 --- a/rust/tool/shared/Cargo.toml +++ b/rust/tool/shared/Cargo.toml @@ -7,10 +7,7 @@ edition.workspace = true [dependencies] anyhow = "1" -clap = { version = "4.4", features = ["derive"] } goblin = "0.7" -nix = { version = "0.27", default-features = false, features = [ "fs" ] } -serde = { version = "1", features = ["derive"] } serde_json = "1" tempfile = "3.8.1" bootspec = "1" @@ -21,11 +18,3 @@ sha2 = "0.10" # different versions. fastrand = "2.0.1" log = { version = "0.4", features = ["std"] } -stderrlog = "0.5" -indoc = "2" - -[dev-dependencies] -assert_cmd = "2.0.12" -expect-test = "1.4.1" -filetime = "0.2.22" -rand = "0.8.5" diff --git a/rust/tool/systemd/Cargo.toml b/rust/tool/systemd/Cargo.toml index 8843ab5..165ba38 100644 --- a/rust/tool/systemd/Cargo.toml +++ b/rust/tool/systemd/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "lzbt-systemd" -version.workspace = true +version.workspace = true edition = "2021" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html @@ -24,5 +24,4 @@ expect-test = "1.4.1" filetime = "0.2.22" rand = "0.8.5" goblin = "0.7.1" -serde = { version = "1.0.190", features = ["derive"] } walkdir = "2.4.0"