Skip to content

Commit 9dd8d8a

Browse files
committed
uucore: make chrono, chrono-tz, iana-time-zone deps optional under the custom-tz-fmt feature
1 parent b860ce8 commit 9dd8d8a

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

src/uucore/Cargo.toml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,17 +21,16 @@ all-features = true
2121
path = "src/lib/lib.rs"
2222

2323
[dependencies]
24-
chrono = { workspace = true }
25-
chrono-tz = { workspace = true }
24+
chrono = { workspace = true, optional = true }
25+
chrono-tz = { workspace = true, optional = true }
2626
clap = { workspace = true }
2727
uucore_procs = { workspace = true }
2828
number_prefix = { workspace = true }
2929
dns-lookup = { workspace = true, optional = true }
3030
dunce = { version = "1.0.4", optional = true }
3131
wild = "2.2.1"
3232
glob = { workspace = true }
33-
iana-time-zone = { workspace = true }
34-
# * optional
33+
iana-time-zone = { workspace = true, optional = true }
3534
itertools = { workspace = true, optional = true }
3635
thiserror = { workspace = true, optional = true }
3736
time = { workspace = true, optional = true, features = [
@@ -134,6 +133,6 @@ utf8 = []
134133
utmpx = ["time", "time/macros", "libc", "dns-lookup"]
135134
version-cmp = []
136135
wide = []
137-
custom-tz-fmt = []
136+
custom-tz-fmt = ["chrono", "chrono-tz", "iana-time-zone"]
138137
tty = []
139138
uptime = ["libc", "windows-sys", "utmpx", "utmp-classic", "thiserror"]

0 commit comments

Comments
 (0)