From 4f737c943e8e499f3a6e67c47d9e775cebdcede1 Mon Sep 17 00:00:00 2001 From: Dongsu Park Date: Wed, 24 Jul 2024 14:37:36 +0200 Subject: [PATCH 1/2] Cargo.toml: remove unnecessary crates bzip2, protobuf Remove unnecssary crates, bzip2 and protobuf. Detected by cargo-machete. --- Cargo.lock | 2 -- Cargo.toml | 2 -- 2 files changed, 4 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 6da57f9..3ccbad3 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1421,13 +1421,11 @@ version = "0.1.0" dependencies = [ "anyhow", "argh", - "bzip2", "env_logger", "globset", "hard-xml", "log", "omaha", - "protobuf", "reqwest", "sha2", "tempfile", diff --git a/Cargo.toml b/Cargo.toml index 97ed81b..25f49d4 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -8,11 +8,9 @@ edition = "2021" [dependencies] anyhow = "1.0.75" argh = "0.1" -bzip2 = "0.4.4" env_logger = "0.10" globset = "0.4" log = "0.4" -protobuf = "3.2.0" reqwest = { version = "0.11", features = ["blocking"] } sha2 = "0.10" tempfile = "3.8.1" From a5aac84fa2cabb664ae564eaaee9b6f8f35f8df0 Mon Sep 17 00:00:00 2001 From: Dongsu Park Date: Wed, 24 Jul 2024 14:39:59 +0200 Subject: [PATCH 2/2] Cargo.toml: exclude uuid from machete For some reason cargo-machete shows false positive of uuid, which is actually needed for building ue-rs. Exlude uuid from machete. --- Cargo.toml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Cargo.toml b/Cargo.toml index 25f49d4..bce9276 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -46,3 +46,7 @@ strip = true # Reduce binary size by using one codegen unit for similar gains as thin LTO # (which we had problem with when cross-compiling) codegen-units = 1 + +# cargo-machete shows false positive of uuid, which is actually needed. +[package.metadata.cargo-machete] +ignored = ["uuid"]