From 07e96c8318405183425cbee24291fb32c2717e0f Mon Sep 17 00:00:00 2001 From: Daniel Hofstetter Date: Thu, 31 Aug 2023 16:26:07 +0200 Subject: [PATCH] uucore: make deps of "sum" feature optional --- src/uucore/Cargo.toml | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/src/uucore/Cargo.toml b/src/uucore/Cargo.toml index d376e807a20..f9f685532ee 100644 --- a/src/uucore/Cargo.toml +++ b/src/uucore/Cargo.toml @@ -40,16 +40,16 @@ libc = { workspace = true, optional = true } once_cell = { workspace = true } os_display = "0.1.3" -digest = { workspace = true } -hex = { workspace = true } -memchr = { workspace = true } -md-5 = { workspace = true } -sha1 = { workspace = true } -sha2 = { workspace = true } -sha3 = { workspace = true } -blake2b_simd = { workspace = true } -blake3 = { workspace = true } -sm3 = { workspace = true } +digest = { workspace = true, optional = true } +hex = { workspace = true, optional = true } +memchr = { workspace = true, optional = true } +md-5 = { workspace = true, optional = true } +sha1 = { workspace = true, optional = true } +sha2 = { workspace = true, optional = true } +sha3 = { workspace = true, optional = true } +blake2b_simd = { workspace = true, optional = true } +blake3 = { workspace = true, optional = true } +sm3 = { workspace = true, optional = true } [target.'cfg(unix)'.dependencies] walkdir = { workspace = true, optional = true } @@ -86,4 +86,4 @@ utf8 = [] utmpx = ["time", "time/macros", "libc", "dns-lookup"] wide = [] pipes = [] -sum = [] +sum = ["digest", "hex", "memchr", "md-5", "sha1", "sha2", "sha3", "blake2b_simd", "blake3", "sm3"]