File: 2002_no_windows.patch

package info (click to toggle)
rust-wasmtime 28.0.1%2Bdfsg-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 54,120 kB
  • sloc: ansic: 4,071; sh: 567; javascript: 548; cpp: 280; asm: 175; ml: 96; makefile: 55
file content (211 lines) | stat: -rw-r--r-- 6,213 bytes parent folder | download
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
Description: avoid Windows-only crates
Author: Jonas Smedegaard <dr@jones.dk>
Forwarded: not-needed
Last-Update: 2025-02-09
---
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
--- a/cranelift/interpreter/Cargo.toml
+++ b/cranelift/interpreter/Cargo.toml
@@ -21,9 +21,6 @@
 smallvec = { workspace = true }
 thiserror = { workspace = true }
 
-[target.x86_64-pc-windows-gnu.dependencies]
-libm = "0.2.4"
-
 [dev-dependencies]
 cranelift-frontend = { workspace = true }
 cranelift-reader = { workspace = true }
--- a/cranelift/jit/Cargo.toml
+++ b/cranelift/jit/Cargo.toml
@@ -27,14 +27,6 @@
 log = { workspace = true }
 wasmtime-jit-icache-coherence = { workspace = true }
 
-[target.'cfg(windows)'.dependencies.windows-sys]
-workspace = true
-features = [
-    "Win32_Foundation",
-    "Win32_System_LibraryLoader",
-    "Win32_System_Memory",
-]
-
 [features]
 selinux-fix = ['memmap2']
 default = []
--- a/crates/jit-icache-coherence/Cargo.toml
+++ b/crates/jit-icache-coherence/Cargo.toml
@@ -16,14 +16,6 @@
 cfg-if = { workspace = true }
 anyhow = { workspace = true }
 
-[target.'cfg(target_os = "windows")'.dependencies.windows-sys]
-workspace = true
-features = [
-    "Win32_Foundation",
-    "Win32_System_Threading",
-    "Win32_System_Diagnostics_Debug",
-]
-
 [target.'cfg(any(target_os = "linux", target_os = "macos", target_os = "freebsd", target_os = "android"))'.dependencies]
 libc = { workspace = true }
 
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -102,9 +102,6 @@
 wasmtime-wast-util = { path = 'crates/wast-util' }
 wasm-encoder = { workspace = true }
 
-[target.'cfg(windows)'.dev-dependencies]
-windows-sys = { workspace = true, features = ["Win32_System_Memory"] }
-
 [build-dependencies]
 anyhow = { workspace = true, features = ['std'] }
 
@@ -227,7 +224,6 @@
 gimli = { version = "0.31.0", default-features = false, features = ['read'] }
 addr2line = { version = "0.24.1", default-features = false }
 anyhow = { version = "1.0.93", default-features = false }
-windows-sys = "0.59.0"
 env_logger = "0.11.5"
 log = { version = "0.4.8", default-features = false }
 clap = { version = "4.5.17", default-features = false, features = ["std", "derive"] }
--- a/crates/cache/Cargo.toml
+++ b/crates/cache/Cargo.toml
@@ -24,12 +24,6 @@
 toml = { workspace = true }
 zstd = { version = "0.13.0", default-features = false }
 
-[target.'cfg(target_os = "windows")'.dependencies.windows-sys]
-workspace = true
-features = [
-  "Win32_System_Threading",
-]
-
 [target.'cfg(not(target_os = "windows"))'.dependencies]
 rustix = { workspace = true, features = ["process"] }
 
--- a/crates/fiber/Cargo.toml
+++ b/crates/fiber/Cargo.toml
@@ -20,13 +20,6 @@
 [target.'cfg(unix)'.dependencies]
 rustix = { workspace = true, features = ["mm", "param"] }
 
-[target.'cfg(windows)'.dependencies.windows-sys]
-workspace = true
-features = [
-  "Win32_System_Threading",
-  "Win32_Foundation",
-]
-
 [build-dependencies]
 cc = "1.0"
 wasmtime-versioned-export-macros = { workspace = true }
--- a/crates/wasi-common/Cargo.toml
+++ b/crates/wasi-common/Cargo.toml
@@ -42,17 +42,6 @@
 [target.'cfg(unix)'.dependencies]
 rustix = { workspace = true, features = ["fs", "event"] }
 
-[target.'cfg(windows)'.dependencies]
-io-extras = { workspace = true }
-rustix = { workspace = true, features = ["net"] }
-
-[target.'cfg(windows)'.dependencies.windows-sys]
-workspace = true
-features = [
-    "Win32_Foundation",
-    "Win32_Networking_WinSock",
-]
-
 [dev-dependencies]
 wasi-common = { path = '.', features = ['tokio'] }
 tempfile = { workspace = true }
--- a/crates/wasi-nn/Cargo.toml
+++ b/crates/wasi-nn/Cargo.toml
@@ -39,17 +39,6 @@
 ], optional = true }
 tch = { version = "0.17.0", default-features = false, optional = true}
 
-[target.'cfg(windows)'.dependencies.windows]
-version = "0.52"
-features = [
-    "AI_MachineLearning",
-    "Storage_Streams",
-    "Foundation_Collections",
-    # For getting IVectorView<i64> from tensor.dimensions.
-    "implement",
-]
-optional = true
-
 [build-dependencies]
 walkdir = { workspace = true }
 
@@ -62,13 +51,11 @@
 tracing-subscriber = { workspace = true }
 
 [features]
-default = ["openvino", "winml"]
+default = ["openvino"]
 # OpenVINO is available on all platforms; it requires OpenVINO to be installed.
 openvino = ["dep:openvino"]
 # ONNX is available on all platforms.
 onnx = ["dep:ort"]
-# WinML is only available on Windows 10 1809 and later.
-winml = ["dep:windows"]
 # PyTorch is available on all platforms; requires Libtorch to be installed
 pytorch = ["dep:tch"]
 
--- a/crates/wasi/Cargo.toml
+++ b/crates/wasi/Cargo.toml
@@ -47,11 +47,6 @@
 [target.'cfg(unix)'.dependencies]
 rustix = { workspace = true, features = ["event", "fs", "net"] }
 
-[target.'cfg(windows)'.dependencies]
-io-extras = { workspace = true }
-windows-sys = { workspace = true }
-rustix = { workspace = true, features = ["event", "net"] }
-
 [features]
 default = [ "preview1"]
 preview1 = [
--- a/crates/wasmtime/Cargo.toml
+++ b/crates/wasmtime/Cargo.toml
@@ -56,19 +56,6 @@
 libm = "0.2.7"
 bitflags = { workspace = true }
 
-[target.'cfg(target_os = "windows")'.dependencies.windows-sys]
-workspace = true
-optional = true
-features = [
-  "Win32_Foundation",
-  "Win32_System_Kernel",
-  "Win32_System_Memory",
-  "Win32_System_Diagnostics_Debug",
-  "Win32_System_SystemInformation",
-  "Win32_Storage_FileSystem",
-  "Win32_Security",
-]
-
 # Allow-list the platforms that `ittapi` builds on since it's got C code that
 # doesn't compile by default on all platforms just yet. Also note that this is
 # only enabled for `x86_64` targets as well.
@@ -76,8 +63,6 @@
 ittapi = { workspace = true, optional = true }
 [target.'cfg(all(target_arch = "x86_64", target_os = "macos"))'.dependencies]
 ittapi = { workspace = true, optional = true }
-[target.'cfg(all(target_arch = "x86_64", target_os = "windows"))'.dependencies]
-ittapi = { workspace = true, optional = true }
 
 [target.'cfg(target_os = "linux")'.dependencies]
 memfd = { workspace = true, optional = true }
@@ -205,7 +190,6 @@
   "dep:wasmtime-asm-macros",
   "dep:wasmtime-slab",
   "dep:wasmtime-versioned-export-macros",
-  "dep:windows-sys",
   "dep:psm",
   "dep:rustix",
   "rustix/mm",