Skip to content

Commit 25befcd

Browse files
authored
Merge pull request #10484 from xtqqczze/deps/crossterm
deps: refactor crossterm package configuration
2 parents d8142d0 + 9f98aec commit 25befcd

3 files changed

Lines changed: 5 additions & 40 deletions

File tree

Cargo.lock

Lines changed: 0 additions & 38 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -314,7 +314,7 @@ clap = { version = "4.5", features = ["wrap_help", "cargo", "color"] }
314314
clap_complete = "4.4"
315315
clap_mangen = "0.2"
316316
compare = "0.1.0"
317-
crossterm = "0.29.0"
317+
crossterm = { version = "0.29.0", default-features = false }
318318
ctor = "0.6.0"
319319
ctrlc = { version = "3.4.7", features = ["termination"] }
320320
divan = { package = "codspeed-divan-compat", version = "4.0.5" }

src/uu/more/Cargo.toml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,15 @@ path = "src/more.rs"
1919

2020
[dependencies]
2121
clap = { workspace = true }
22+
crossterm = { workspace = true, features = ["events"] }
2223
uucore = { workspace = true }
23-
crossterm = { workspace = true }
2424
fluent = { workspace = true }
2525

2626
[target.'cfg(all(unix, not(target_os = "fuchsia")))'.dependencies]
2727

28+
[target.'cfg(windows)'.dependencies]
29+
crossterm = { workspace = true, features = ["windows"] }
30+
2831
[target.'cfg(target_os = "macos")'.dependencies]
2932
crossterm = { workspace = true, features = ["use-dev-tty"] }
3033

0 commit comments

Comments
 (0)