Skip to content

Commit

Permalink
uucore: make deps of "sum" feature optional
Browse files Browse the repository at this point in the history
  • Loading branch information
cakebaker committed Aug 31, 2023
1 parent cb428a8 commit fb1c663
Showing 1 changed file with 22 additions and 11 deletions.
33 changes: 22 additions & 11 deletions src/uucore/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }
Expand Down Expand Up @@ -86,4 +86,15 @@ utf8 = []
utmpx = ["time", "time/macros", "libc", "dns-lookup"]
wide = []
pipes = []
sum = []
sum = [
"digest",
"hex",
"memchr",
"md-5",
"sha1",
"sha2",
"sha3",
"blake2b_simd",
"blake3",
"sm3",
]

0 comments on commit fb1c663

Please sign in to comment.