summaryrefslogtreecommitdiffstats
path: root/debian/patches/d-0020-remove-windows-dependencies.patch
blob: 0e5230716c3571d99681d9776842b0ce53438f01 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
Index: rust/compiler/rustc_data_structures/Cargo.toml
===================================================================
--- rust.orig/compiler/rustc_data_structures/Cargo.toml
+++ rust/compiler/rustc_data_structures/Cargo.toml
@@ -38,16 +38,6 @@ itertools = "0.10.1"
 [dependencies.parking_lot]
 version = "0.11"
 
-[target.'cfg(windows)'.dependencies.windows]
-version = "0.46.0"
-features = [
-    "Win32_Foundation",
-    "Win32_Storage_FileSystem",
-    "Win32_System_IO",
-    "Win32_System_ProcessStatus",
-    "Win32_System_Threading",
-]
-
 [target.'cfg(not(target_arch = "wasm32"))'.dependencies]
 memmap2 = "0.2.1"
 
Index: rust/compiler/rustc_driver_impl/Cargo.toml
===================================================================
--- rust.orig/compiler/rustc_driver_impl/Cargo.toml
+++ rust/compiler/rustc_driver_impl/Cargo.toml
@@ -54,12 +54,6 @@ rustc_hir_analysis = { path = "../rustc_
 [target.'cfg(unix)'.dependencies]
 libc = "0.2"
 
-[target.'cfg(windows)'.dependencies.windows]
-version = "0.46.0"
-features = [
-    "Win32_System_Diagnostics_Debug",
-]
-
 [features]
 llvm = ['rustc_interface/llvm']
 max_level_info = ['rustc_log/max_level_info']
Index: rust/compiler/rustc_errors/Cargo.toml
===================================================================
--- rust.orig/compiler/rustc_errors/Cargo.toml
+++ rust/compiler/rustc_errors/Cargo.toml
@@ -25,14 +25,5 @@ termize = "0.1.1"
 serde = { version = "1.0.125", features = [ "derive" ] }
 serde_json = "1.0.59"
 
-[target.'cfg(windows)'.dependencies.windows]
-version = "0.46.0"
-features = [
-    "Win32_Foundation",
-    "Win32_Security",
-    "Win32_System_Threading",
-    "Win32_System_WindowsProgramming",
-]
-
 [features]
 rustc_use_parallel_compiler = ['rustc_error_messages/rustc_use_parallel_compiler']
Index: rust/compiler/rustc_session/Cargo.toml
===================================================================
--- rust.orig/compiler/rustc_session/Cargo.toml
+++ rust/compiler/rustc_session/Cargo.toml
@@ -23,10 +23,3 @@ termize = "0.1.1"
 
 [target.'cfg(unix)'.dependencies]
 libc = "0.2"
-
-[target.'cfg(windows)'.dependencies.windows]
-version = "0.46.0"
-features = [
-    "Win32_Foundation",
-    "Win32_System_LibraryLoader",
-]
Index: rust/src/bootstrap/Cargo.toml
===================================================================
--- rust.orig/src/bootstrap/Cargo.toml
+++ rust/src/bootstrap/Cargo.toml
@@ -61,25 +61,6 @@ sysinfo = { version = "0.26.0", optional
 [target.'cfg(not(target_os = "solaris"))'.dependencies]
 fd-lock = "3.0.8"
 
-[target.'cfg(windows)'.dependencies.junction]
-version = "1.0.0"
-
-[target.'cfg(windows)'.dependencies.windows]
-version = "0.46.0"
-features = [
-    "Win32_Foundation",
-    "Win32_Security",
-    "Win32_Storage_FileSystem",
-    "Win32_System_Diagnostics_Debug",
-    "Win32_System_IO",
-    "Win32_System_Ioctl",
-    "Win32_System_JobObjects",
-    "Win32_System_ProcessStatus",
-    "Win32_System_SystemServices",
-    "Win32_System_Threading",
-    "Win32_System_Time",
-]
-
 [dev-dependencies]
 pretty_assertions = "1.2"
 
Index: rust/src/tools/compiletest/Cargo.toml
===================================================================
--- rust.orig/src/tools/compiletest/Cargo.toml
+++ rust/src/tools/compiletest/Cargo.toml
@@ -23,13 +23,3 @@ lazycell = "1.3.0"
 
 [target.'cfg(unix)'.dependencies]
 libc = "0.2"
-
-[target.'cfg(windows)'.dependencies]
-miow = "0.5"
-
-[target.'cfg(windows)'.dependencies.windows]
-version = "0.46.0"
-features = [
-    "Win32_Foundation",
-    "Win32_System_Diagnostics_Debug",
-]
Index: rust/src/tools/rust-analyzer/crates/stdx/Cargo.toml
===================================================================
--- rust.orig/src/tools/rust-analyzer/crates/stdx/Cargo.toml
+++ rust/src/tools/rust-analyzer/crates/stdx/Cargo.toml
@@ -17,10 +17,6 @@ backtrace = { version = "0.3.65", option
 always-assert = { version = "0.1.2", features = ["log"] }
 # Think twice before adding anything here
 
-[target.'cfg(windows)'.dependencies]
-miow = "0.5.0"
-winapi = { version = "0.3.9", features = ["winerror"] }
-
 [features]
 # Uncomment to enable for the whole crate graph
 # default = [ "backtrace" ]
Index: rust/src/tools/rust-analyzer/crates/rust-analyzer/Cargo.toml
===================================================================
--- rust.orig/src/tools/rust-analyzer/crates/rust-analyzer/Cargo.toml
+++ rust/src/tools/rust-analyzer/crates/rust-analyzer/Cargo.toml
@@ -67,12 +67,6 @@ tt.workspace = true
 vfs-notify.workspace = true
 vfs.workspace = true
 
-[target.'cfg(windows)'.dependencies]
-winapi = "0.3.9"
-
-[target.'cfg(not(target_env = "msvc"))'.dependencies]
-jemallocator = { version = "0.5.0", package = "tikv-jemallocator", optional = true }
-
 [dev-dependencies]
 expect-test = "1.4.0"
 jod-thread = "0.1.2"
Index: rust/src/tools/cargo/Cargo.toml
===================================================================
--- rust.orig/src/tools/cargo/Cargo.toml
+++ rust/src/tools/cargo/Cargo.toml
@@ -82,22 +82,6 @@ walkdir = "2.2"
 # for more information.
 rustc-workspace-hack = "1.0.0"
 
-[target.'cfg(windows)'.dependencies]
-fwdansi = "1.1.0"
-
-[target.'cfg(windows)'.dependencies.windows-sys]
-version = "0.45"
-features = [
-  "Win32_Foundation",
-  "Win32_Storage_FileSystem",
-  "Win32_System_Console",
-  "Win32_System_IO",
-  "Win32_System_Threading",
-  "Win32_System_JobObjects",
-  "Win32_Security",
-  "Win32_System_SystemServices"
-]
-
 [dev-dependencies]
 cargo-test-macro = { path = "crates/cargo-test-macro" }
 cargo-test-support = { path = "crates/cargo-test-support" }
Index: rust/src/tools/cargo/crates/cargo-util/Cargo.toml
===================================================================
--- rust.orig/src/tools/cargo/crates/cargo-util/Cargo.toml
+++ rust/src/tools/cargo/crates/cargo-util/Cargo.toml
@@ -22,7 +22,3 @@ walkdir = "2.3.1"
 
 [target.'cfg(target_os = "macos")'.dependencies]
 core-foundation = { version = "0.9.0", features = ["mac_os_10_7_support"] }
-
-[target.'cfg(windows)'.dependencies]
-miow = "0.5.0"
-windows-sys = { version = "0.45.0", features = ["Win32_Storage_FileSystem", "Win32_Foundation", "Win32_System_Console"] }
Index: rust/src/tools/cargo/crates/cargo-test-support/Cargo.toml
===================================================================
--- rust.orig/src/tools/cargo/crates/cargo-test-support/Cargo.toml
+++ rust/src/tools/cargo/crates/cargo-test-support/Cargo.toml
@@ -27,6 +27,3 @@ termcolor = "1.1.2"
 time = { version = "0.3", features = ["parsing", "formatting"]}
 toml = "0.7.0"
 url = "2.2.2"
-
-[target.'cfg(windows)'.dependencies]
-windows-sys = { version = "0.45.0", features = ["Win32_Storage_FileSystem"] }
Index: rust/src/tools/cargo/crates/home/Cargo.toml
===================================================================
--- rust.orig/src/tools/cargo/crates/home/Cargo.toml
+++ rust/src/tools/cargo/crates/home/Cargo.toml
@@ -15,6 +15,3 @@ license = "MIT OR Apache-2.0"
 readme = "README.md"
 repository = "https://github.com/rust-lang/cargo"
 description = "Shared definitions of home directories."
-
-[target.'cfg(windows)'.dependencies]
-windows-sys = { version = "0.45.0", features = ["Win32_Foundation", "Win32_UI_Shell"] }