uucore: make deps of "sum" feature optional

This commit is contained in:
Daniel Hofstetter 2023-08-31 16:26:07 +02:00
parent cb428a808a
commit fb1c663724

View file

@ -40,16 +40,16 @@ libc = { workspace = true, optional = true }
once_cell = { workspace = true } once_cell = { workspace = true }
os_display = "0.1.3" os_display = "0.1.3"
digest = { workspace = true } digest = { workspace = true, optional = true }
hex = { workspace = true } hex = { workspace = true, optional = true }
memchr = { workspace = true } memchr = { workspace = true, optional = true }
md-5 = { workspace = true } md-5 = { workspace = true, optional = true }
sha1 = { workspace = true } sha1 = { workspace = true, optional = true }
sha2 = { workspace = true } sha2 = { workspace = true, optional = true }
sha3 = { workspace = true } sha3 = { workspace = true, optional = true }
blake2b_simd = { workspace = true } blake2b_simd = { workspace = true, optional = true }
blake3 = { workspace = true } blake3 = { workspace = true, optional = true }
sm3 = { workspace = true } sm3 = { workspace = true, optional = true }
[target.'cfg(unix)'.dependencies] [target.'cfg(unix)'.dependencies]
walkdir = { workspace = true, optional = true } walkdir = { workspace = true, optional = true }
@ -86,4 +86,15 @@ utf8 = []
utmpx = ["time", "time/macros", "libc", "dns-lookup"] utmpx = ["time", "time/macros", "libc", "dns-lookup"]
wide = [] wide = []
pipes = [] pipes = []
sum = [] sum = [
"digest",
"hex",
"memchr",
"md-5",
"sha1",
"sha2",
"sha3",
"blake2b_simd",
"blake3",
"sm3",
]