| 1 |
Description: avoid Windows-only crates |
| 2 |
Author: Jonas Smedegaard <[email protected]> |
| 3 |
Forwarded: not-needed |
| 4 |
Last-Update: 2025-08-28 |
| 5 |
--- |
| 6 |
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/ |
| 7 |
--- a/helix-stdx/Cargo.toml |
| 8 |
+++ b/helix-stdx/Cargo.toml |
| 9 |
@@ -24,9 +24,6 @@ |
| 10 |
serde = { version = "1.0", features = ["derive"] } |
| 11 |
percent-encoding = "2.3" |
| 12 |
|
| 13 |
|
| 14 |
|
| 15 |
|
| 16 |
[target.'cfg(unix)'.dependencies] |
| 17 |
rustix = { version = "1.1", features = ["fs", "thread"] } |
| 18 |
|
| 19 |
--- a/helix-term/Cargo.toml |
| 20 |
+++ b/helix-term/Cargo.toml |
| 21 |
@@ -54,7 +54,7 @@ |
| 22 |
once_cell = "1.21" |
| 23 |
|
| 24 |
tokio = { version = "1", features = ["rt", "rt-multi-thread", "io-util", "io-std", "time", "process", "macros", "fs", "parking_lot"] } |
| 25 |
|
| 26 |
+tui = { path = "../helix-tui", package = "helix-tui", default-features = false, features = ["termina"] } |
| 27 |
termina = { workspace = true, features = ["event-stream"] } |
| 28 |
signal-hook = "0.4" |
| 29 |
tokio-stream = "0.1" |
| 30 |
@@ -89,9 +89,6 @@ |
| 31 |
|
| 32 |
parking_lot.workspace = true |
| 33 |
|
| 34 |
|
| 35 |
|
| 36 |
|
| 37 |
[target.'cfg(not(windows))'.dependencies] # https://github.com/vorner/signal-hook/issues/100 |
| 38 |
signal-hook-tokio = { version = "0.4", features = ["futures-v0_3"] } |
| 39 |
libc = "0.2.186" |
| 40 |
--- a/helix-tui/Cargo.toml |
| 41 |
+++ b/helix-tui/Cargo.toml |
| 42 |
@@ -12,7 +12,7 @@ |
| 43 |
homepage.workspace = true |
| 44 |
|
| 45 |
[features] |
| 46 |
|
| 47 |
+default = ["termina"] |
| 48 |
|
| 49 |
[dependencies] |
| 50 |
helix-view = { path = "../helix-view", features = ["term"] } |
| 51 |
@@ -26,6 +26,3 @@ |
| 52 |
termini = "1.0" |
| 53 |
once_cell = "1.21" |
| 54 |
log = "~0.4" |
| 55 |
|
| 56 |
|
| 57 |
|
| 58 |
--- a/helix-view/Cargo.toml |
| 59 |
+++ b/helix-view/Cargo.toml |
| 60 |
@@ -18,7 +18,7 @@ |
| 61 |
|
| 62 |
[features] |
| 63 |
default = [] |
| 64 |
|
| 65 |
+term = ["termina"] |
| 66 |
unicode-lines = [] |
| 67 |
|
| 68 |
[dependencies] |
| 69 |
@@ -60,10 +60,6 @@ |
| 70 |
|
| 71 |
kstring = "2.0" |
| 72 |
|
| 73 |
|
| 74 |
|
| 75 |
|
| 76 |
|
| 77 |
[target.'cfg(unix)'.dependencies] |
| 78 |
libc = "0.2" |
| 79 |
rustix = { version = "1.1", features = ["fs"] } |
| 80 |
--- a/Xtermina/Cargo.toml |
| 81 |
+++ b/Xtermina/Cargo.toml |
| 82 |
@@ -12,10 +12,6 @@ |
| 83 |
[features] |
| 84 |
default = [] |
| 85 |
event-stream = ["dep:futures-core"] |
| 86 |
|
| 87 |
|
| 88 |
|
| 89 |
|
| 90 |
|
| 91 |
[dependencies] |
| 92 |
parking_lot = "0.12" |
| 93 |
@@ -35,22 +31,6 @@ |
| 94 |
"event", |
| 95 |
] |
| 96 |
|
| 97 |
|
| 98 |
|
| 99 |
|
| 100 |
|
| 101 |
|
| 102 |
|
| 103 |
|
| 104 |
|
| 105 |
|
| 106 |
|
| 107 |
|
| 108 |
|
| 109 |
|
| 110 |
|
| 111 |
|
| 112 |
|
| 113 |
[[example]] |
| 114 |
name = "event-read" |
| 115 |
required-features = ["windows-legacy"] |