1
Fork 0
mirror of https://github.com/RGBCube/uutils-coreutils synced 2025-07-30 20:47:46 +00:00

uucore: make chrono, chrono-tz, iana-time-zone deps optional under the custom-tz-fmt feature

This commit is contained in:
Dorian Peron 2025-04-04 18:43:37 +02:00
parent b860ce8553
commit 9dd8d8ab0d

View file

@ -21,8 +21,8 @@ all-features = true
path = "src/lib/lib.rs" path = "src/lib/lib.rs"
[dependencies] [dependencies]
chrono = { workspace = true } chrono = { workspace = true, optional = true }
chrono-tz = { workspace = true } chrono-tz = { workspace = true, optional = true }
clap = { workspace = true } clap = { workspace = true }
uucore_procs = { workspace = true } uucore_procs = { workspace = true }
number_prefix = { workspace = true } number_prefix = { workspace = true }
@ -30,8 +30,7 @@ dns-lookup = { workspace = true, optional = true }
dunce = { version = "1.0.4", optional = true } dunce = { version = "1.0.4", optional = true }
wild = "2.2.1" wild = "2.2.1"
glob = { workspace = true } glob = { workspace = true }
iana-time-zone = { workspace = true } iana-time-zone = { workspace = true, optional = true }
# * optional
itertools = { workspace = true, optional = true } itertools = { workspace = true, optional = true }
thiserror = { workspace = true, optional = true } thiserror = { workspace = true, optional = true }
time = { workspace = true, optional = true, features = [ time = { workspace = true, optional = true, features = [
@ -134,6 +133,6 @@ utf8 = []
utmpx = ["time", "time/macros", "libc", "dns-lookup"] utmpx = ["time", "time/macros", "libc", "dns-lookup"]
version-cmp = [] version-cmp = []
wide = [] wide = []
custom-tz-fmt = [] custom-tz-fmt = ["chrono", "chrono-tz", "iana-time-zone"]
tty = [] tty = []
uptime = ["libc", "windows-sys", "utmpx", "utmp-classic", "thiserror"] uptime = ["libc", "windows-sys", "utmpx", "utmp-classic", "thiserror"]