File: disable-windows.diff

package info (click to toggle)
rust-coreutils 0.6.0-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 485,976 kB
  • sloc: ansic: 103,608; asm: 28,570; sh: 8,672; python: 5,662; makefile: 474; cpp: 97; javascript: 72
file content (225 lines) | stat: -rw-r--r-- 7,324 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
212
213
214
215
216
217
218
219
220
221
222
223
224
225
Index: coreutils/src/uu/date/Cargo.toml
===================================================================
--- coreutils.orig/src/uu/date/Cargo.toml
+++ coreutils/src/uu/date/Cargo.toml
@@ -44,12 +44,6 @@ uucore = { workspace = true, features =
 [target.'cfg(unix)'.dependencies]
 nix = { workspace = true, features = ["time"] }
 
-[target.'cfg(windows)'.dependencies]
-windows-sys = { workspace = true, features = [
-  "Win32_Foundation",
-  "Win32_System_SystemInformation",
-] }
-
 [[bin]]
 name = "date"
 path = "src/main.rs"
Index: coreutils/src/uu/du/Cargo.toml
===================================================================
--- coreutils.orig/src/uu/du/Cargo.toml
+++ coreutils/src/uu/du/Cargo.toml
@@ -34,12 +34,6 @@ fluent = { workspace = true }
 [target.'cfg(all(unix, not(target_os = "redox")))'.dependencies]
 uucore = { workspace = true, features = ["safe-traversal"] }
 
-[target.'cfg(target_os = "windows")'.dependencies]
-windows-sys = { workspace = true, features = [
-  "Win32_Storage_FileSystem",
-  "Win32_Foundation",
-] }
-
 [[bin]]
 name = "du"
 path = "src/main.rs"
Index: coreutils/src/uu/hostname/Cargo.toml
===================================================================
--- coreutils.orig/src/uu/hostname/Cargo.toml
+++ coreutils/src/uu/hostname/Cargo.toml
@@ -26,12 +26,6 @@ fluent = { workspace = true }
 [target.'cfg(any(target_os = "freebsd", target_os = "openbsd"))'.dependencies]
 dns-lookup = { workspace = true }
 
-[target.'cfg(target_os = "windows")'.dependencies]
-windows-sys = { workspace = true, features = [
-  "Win32_Networking_WinSock",
-  "Win32_Foundation",
-] }
-
 [[bin]]
 name = "hostname"
 path = "src/main.rs"
Index: coreutils/src/uu/rm/Cargo.toml
===================================================================
--- coreutils.orig/src/uu/rm/Cargo.toml
+++ coreutils/src/uu/rm/Cargo.toml
@@ -30,9 +30,6 @@ uucore = { workspace = true, features =
 [target.'cfg(unix)'.dependencies]
 libc = { workspace = true }
 
-[target.'cfg(windows)'.dependencies]
-windows-sys = { workspace = true, features = ["Win32_Storage_FileSystem"] }
-
 [[bin]]
 name = "rm"
 path = "src/main.rs"
Index: coreutils/src/uu/sync/Cargo.toml
===================================================================
--- coreutils.orig/src/uu/sync/Cargo.toml
+++ coreutils/src/uu/sync/Cargo.toml
@@ -25,13 +25,6 @@ fluent = { workspace = true }
 [target.'cfg(unix)'.dependencies]
 nix = { workspace = true }
 
-[target.'cfg(target_os = "windows")'.dependencies]
-windows-sys = { workspace = true, features = [
-  "Win32_Storage_FileSystem",
-  "Win32_System_WindowsProgramming",
-  "Win32_Foundation",
-] }
-
 [[bin]]
 name = "sync"
 path = "src/main.rs"
Index: coreutils/src/uu/tail/Cargo.toml
===================================================================
--- coreutils.orig/src/uu/tail/Cargo.toml
+++ coreutils/src/uu/tail/Cargo.toml
@@ -30,12 +30,6 @@ fluent = { workspace = true }
 [target.'cfg(unix)'.dependencies]
 nix = { workspace = true, features = ["fs"] }
 
-[target.'cfg(windows)'.dependencies]
-windows-sys = { workspace = true, features = [
-  "Win32_System_Threading",
-  "Win32_Foundation",
-] }
-
 [dev-dependencies]
 rstest = { workspace = true }
 
Index: coreutils/src/uu/touch/Cargo.toml
===================================================================
--- coreutils.orig/src/uu/touch/Cargo.toml
+++ coreutils/src/uu/touch/Cargo.toml
@@ -27,12 +27,6 @@ thiserror = { workspace = true }
 uucore = { workspace = true, features = ["libc", "parser"] }
 fluent = { workspace = true }
 
-[target.'cfg(target_os = "windows")'.dependencies]
-windows-sys = { workspace = true, features = [
-  "Win32_Storage_FileSystem",
-  "Win32_Foundation",
-] }
-
 [[bin]]
 name = "touch"
 path = "src/main.rs"
Index: coreutils/src/uu/whoami/Cargo.toml
===================================================================
--- coreutils.orig/src/uu/whoami/Cargo.toml
+++ coreutils/src/uu/whoami/Cargo.toml
@@ -22,13 +22,6 @@ clap = { workspace = true }
 uucore = { workspace = true, features = ["entries", "process"] }
 fluent = { workspace = true }
 
-[target.'cfg(target_os = "windows")'.dependencies]
-windows-sys = { workspace = true, features = [
-  "Win32_NetworkManagement_NetManagement",
-  "Win32_System_WindowsProgramming",
-  "Win32_Foundation",
-] }
-
 [[bin]]
 name = "whoami"
 path = "src/main.rs"
Index: coreutils/src/uucore/Cargo.toml
===================================================================
--- coreutils.orig/src/uucore/Cargo.toml
+++ coreutils/src/uucore/Cargo.toml
@@ -110,21 +110,6 @@ tempfile = { workspace = true }
 [target.'cfg(target_os = "linux")'.dependencies]
 procfs = { workspace = true, optional = true }
 
-[target.'cfg(target_os = "windows")'.dependencies]
-wild = "2.2.1"
-winapi-util = { workspace = true, optional = true }
-windows-sys = { workspace = true, optional = true, default-features = false, features = [
-  "Wdk_System_SystemInformation",
-  "Win32_Storage_FileSystem",
-  "Win32_Foundation",
-  "Win32_System_RemoteDesktop",
-  "Win32_System_SystemInformation",
-  "Win32_System_WindowsProgramming",
-] }
-
-[target.'cfg(target_os = "openbsd")'.dependencies]
-utmp-classic = { workspace = true, optional = true }
-
 [features]
 default = ["signals"]
 # * non-default features
@@ -135,8 +120,8 @@ encoding = ["data-encoding", "data-encod
 entries = ["libc"]
 extendedbigdecimal = ["bigdecimal", "num-traits"]
 fast-inc = []
-fs = ["dunce", "libc", "winapi-util", "windows-sys"]
-fsext = ["libc", "windows-sys", "bstr"]
+fs = ["dunce", "libc"]
+fsext = ["libc", "bstr"]
 fsxattr = ["xattr", "itertools"]
 hardware = []
 lines = []
@@ -199,5 +184,5 @@ version-cmp = []
 wide = []
 tty = []
 time = ["jiff"]
-uptime = ["jiff", "libc", "windows-sys", "utmpx", "utmp-classic"]
+uptime = ["jiff", "libc", "utmpx", "utmp-classic"]
 benchmark = ["divan", "itertools", "tempfile"]
Index: coreutils/Cargo.toml
===================================================================
--- coreutils.orig/Cargo.toml
+++ coreutils/Cargo.toml
@@ -388,8 +388,6 @@ unit-prefix = "0.5"
 utmp-classic = "0.1.6"
 uutils_term_grid = "0.7"
 walkdir = "2.5"
-winapi-util = "0.1.8"
-windows-sys = { version = "0.61.0", default-features = false }
 xattr = "1.3.1"
 zip = { version = "7.0.0", default-features = false, features = ["deflate"] }
 
Index: coreutils/src/uu/cat/Cargo.toml
===================================================================
--- coreutils.orig/src/uu/cat/Cargo.toml
+++ coreutils/src/uu/cat/Cargo.toml
@@ -27,10 +27,6 @@ fluent = { workspace = true }
 [target.'cfg(unix)'.dependencies]
 nix = { workspace = true }
 
-[target.'cfg(windows)'.dependencies]
-winapi-util = { workspace = true }
-windows-sys = { workspace = true, features = ["Win32_Storage_FileSystem"] }
-
 [dev-dependencies]
 tempfile = { workspace = true }
 
Index: coreutils/src/uu/mv/Cargo.toml
===================================================================
--- coreutils.orig/src/uu/mv/Cargo.toml
+++ coreutils/src/uu/mv/Cargo.toml
@@ -31,13 +31,6 @@ uucore = { workspace = true, features =
 ] }
 fluent = { workspace = true }
 
-[target.'cfg(windows)'.dependencies]
-windows-sys = { workspace = true, features = [
-  "Win32_Foundation",
-  "Win32_Security",
-  "Win32_Storage_FileSystem",
-] }
-
 [target.'cfg(unix)'.dependencies]
 libc = { workspace = true }