Skip to content

Commit be7b697

Browse files
authored
Merge pull request #7654 from RenjiSann/uucore-cargo-toml
uucore: Minor fix to optional dependences
2 parents b860ce8 + 273a050 commit be7b697

File tree

1 file changed

+6
-8
lines changed

1 file changed

+6
-8
lines changed

src/uucore/Cargo.toml

Lines changed: 6 additions & 8 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"
32-
glob = { workspace = true }
33-
iana-time-zone = { workspace = true }
34-
# * optional
32+
glob = { workspace = true, optional = true }
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 = [
@@ -67,7 +66,6 @@ nix = { workspace = true, features = ["fs", "uio", "zerocopy", "signal"] }
6766
xattr = { workspace = true, optional = true }
6867

6968
[dev-dependencies]
70-
clap = { workspace = true }
7169
tempfile = { workspace = true }
7270

7371
[target.'cfg(target_os = "windows")'.dependencies]
@@ -114,7 +112,7 @@ proc-info = ["tty", "walkdir"]
114112
quoting-style = []
115113
ranges = []
116114
ringbuffer = []
117-
parser = ["extendedbigdecimal", "num-traits"]
115+
parser = ["extendedbigdecimal", "glob", "num-traits"]
118116
signals = []
119117
sum = [
120118
"digest",
@@ -134,6 +132,6 @@ utf8 = []
134132
utmpx = ["time", "time/macros", "libc", "dns-lookup"]
135133
version-cmp = []
136134
wide = []
137-
custom-tz-fmt = []
135+
custom-tz-fmt = ["chrono", "chrono-tz", "iana-time-zone"]
138136
tty = []
139137
uptime = ["libc", "windows-sys", "utmpx", "utmp-classic", "thiserror"]

0 commit comments

Comments
 (0)