File: disable-windows.diff

package info (click to toggle)
rust-coreutils 0.0.30-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 17,388 kB
  • sloc: sh: 1,088; python: 407; javascript: 72; makefile: 51
file content (203 lines) | stat: -rw-r--r-- 6,818 bytes parent folder | download | duplicates (2)
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
Index: coreutils/src/uu/date/Cargo.toml
===================================================================
--- coreutils.orig/src/uu/date/Cargo.toml
+++ coreutils/src/uu/date/Cargo.toml
@@ -26,12 +26,6 @@ parse_datetime = { workspace = true }
 [target.'cfg(unix)'.dependencies]
 libc = { workspace = true }
 
-[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
@@ -24,12 +24,6 @@ clap = { workspace = true }
 uucore = { workspace = true, features = ["format"] }
 thiserror = { workspace = true }
 
-[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
@@ -24,12 +24,6 @@ uucore = { workspace = true, features =
 [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
@@ -23,9 +23,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
@@ -24,13 +24,6 @@ uucore = { workspace = true, features =
 [target.'cfg(any(target_os = "linux", target_os = "android"))'.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
@@ -26,12 +26,12 @@ uucore = { workspace = true }
 same-file = { workspace = true }
 fundu = { workspace = true }
 
-[target.'cfg(windows)'.dependencies]
-windows-sys = { workspace = true, features = [
-  "Win32_System_Threading",
-  "Win32_Foundation",
-] }
-winapi-util = { workspace = true }
+#[target.'cfg(windows)'.dependencies]
+#windows-sys = { workspace = true, features = [
+#  "Win32_System_Threading",
+#  "Win32_Foundation",
+#] }
+#winapi-util = { workspace = true }
 
 [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
@@ -25,12 +25,6 @@ parse_datetime = { workspace = true }
 thiserror = { workspace = true }
 uucore = { workspace = true, features = ["libc"] }
 
-[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
@@ -20,13 +20,6 @@ path = "src/whoami.rs"
 clap = { workspace = true }
 uucore = { workspace = true, features = ["entries", "process"] }
 
-[target.'cfg(target_os = "windows")'.dependencies]
-windows-sys = { workspace = true, features = [
-  "Win32_NetworkManagement_NetManagement",
-  "Win32_System_WindowsProgramming",
-  "Win32_Foundation",
-] }
-
 [target.'cfg(unix)'.dependencies]
 libc = { workspace = true }
 
Index: coreutils/src/uucore/Cargo.toml
===================================================================
--- coreutils.orig/src/uucore/Cargo.toml
+++ coreutils/src/uucore/Cargo.toml
@@ -68,19 +68,19 @@ xattr = { workspace = true, optional = t
 clap = { workspace = true }
 tempfile = { workspace = true }
 
-[target.'cfg(target_os = "windows")'.dependencies]
-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_WindowsProgramming",
-] }
-
-[target.'cfg(target_os = "openbsd")'.dependencies]
-utmp-classic = { workspace = true, optional = true }
+#[target.'cfg(target_os = "windows")'.dependencies]
+#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_WindowsProgramming",
+#] }
 
+#[target.'cfg(target_os = "openbsd")'.dependencies]
+#utmp-classic = { workspace = true, optional = true }
+#
 [features]
 default = []
 # * non-default features
@@ -89,8 +89,8 @@ colors = []
 checksum = ["data-encoding", "thiserror", "regex", "sum"]
 encoding = ["data-encoding", "data-encoding-macro", "z85"]
 entries = ["libc"]
-fs = ["dunce", "libc", "winapi-util", "windows-sys"]
-fsext = ["libc", "windows-sys"]
+fs = ["dunce", "libc"]#, "winapi-util", "windows-sys"]
+fsext = ["libc"]#, "windows-sys"]
 fsxattr = ["xattr"]
 lines = []
 format = ["itertools", "quoting-style"]
Index: coreutils/Cargo.toml
===================================================================
--- coreutils.orig/Cargo.toml
+++ coreutils/Cargo.toml
@@ -345,8 +345,8 @@ utf-8 = "0.7.6"
 utmp-classic = "0.1.6"
 uutils_term_grid = "0.6"
 walkdir = "2.5"
-winapi-util = "0.1.8"
-windows-sys = { version = "0.59.0", default-features = false }
+#winapi-util = "0.1.8"
+#windows-sys = { version = "0.59.0", default-features = false }
 xattr = "1.3.1"
 zip = { version = "2.2.2", default-features = false, features = ["deflate"] }