Debian Codegraph @

debian/patches/2001_no_windows.patch

raw symbols SCIP
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 -[target.'cfg(windows)'.dependencies]
14 -windows-sys = { version = "0.61", features = ["Win32_Foundation", "Win32_Security", "Win32_Security_Authorization", "Win32_Storage_FileSystem", "Win32_System_Threading"] }
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 -tui = { path = "../helix-tui", package = "helix-tui", default-features = false, features = ["termina", "crossterm"] }
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 -[target.'cfg(windows)'.dependencies]
35 -crossterm = { version = "0.28", features = ["event-stream"] }
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 -default = ["termina", "crossterm"]
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 -[target.'cfg(windows)'.dependencies]
57 -crossterm = { version = "0.28", optional = true }
58 --- a/helix-view/Cargo.toml
59 +++ b/helix-view/Cargo.toml
60 @@ -18,7 +18,7 @@
61
62 [features]
63 default = []
64 -term = ["termina", "crossterm"]
65 +term = ["termina"]
66 unicode-lines = []
67
68 [dependencies]
69 @@ -60,10 +60,6 @@
70
71 kstring = "2.0"
72
73 -[target.'cfg(windows)'.dependencies]
74 -clipboard-win = { version = "5.4", features = ["std"] }
75 -crossterm = { version = "0.28", optional = true }
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 -windows-legacy = [
87 - "windows-sys/Win32_UI_Input_KeyboardAndMouse",
88 - "windows-sys/Win32_UI_WindowsAndMessaging",
89 -]
90
91 [dependencies]
92 parking_lot = "0.12"
93 @@ -35,22 +31,6 @@
94 "event",
95 ]
96
97 -[target.'cfg(windows)'.dependencies.windows-sys]
98 -# TODO: this could probably be loosened.
99 -version = ">=0.60"
100 -default-features = false
101 -# https://microsoft.github.io/windows-rs/features/#/0.59.0/search
102 -features = [
103 - # Interaction with the legacy and modern console APIs.
104 - "Win32_System_Console",
105 - # Writing files (including console handles).
106 - "Win32_Storage_FileSystem",
107 - "Win32_System_IO",
108 - # Polling for input.
109 - "Win32_System_Threading",
110 - "Win32_Security",
111 -]
112 -
113 [[example]]
114 name = "event-read"
115 required-features = ["windows-legacy"]