1
- #[ cfg( target_os = "linux" ) ]
2
- pub mod os {
3
- pub const FAMILY : & str = "unix" ;
4
- pub const OS : & str = "linux" ;
5
- pub const DLL_PREFIX : & str = "lib" ;
6
- pub const DLL_SUFFIX : & str = ".so" ;
7
- pub const DLL_EXTENSION : & str = "so" ;
8
- pub const EXE_SUFFIX : & str = "" ;
9
- pub const EXE_EXTENSION : & str = "" ;
10
- }
1
+ // Keep entries sorted alphabetically.
11
2
12
- #[ cfg( target_os = "macos " ) ]
3
+ #[ cfg( target_os = "aix " ) ]
13
4
pub mod os {
14
5
pub const FAMILY : & str = "unix" ;
15
- pub const OS : & str = "macos " ;
6
+ pub const OS : & str = "aix " ;
16
7
pub const DLL_PREFIX : & str = "lib" ;
17
- pub const DLL_SUFFIX : & str = ".dylib " ;
18
- pub const DLL_EXTENSION : & str = "dylib " ;
8
+ pub const DLL_SUFFIX : & str = ".a " ;
9
+ pub const DLL_EXTENSION : & str = "a " ;
19
10
pub const EXE_SUFFIX : & str = "" ;
20
11
pub const EXE_EXTENSION : & str = "" ;
21
12
}
22
13
23
- #[ cfg( target_os = "ios " ) ]
14
+ #[ cfg( target_os = "android " ) ]
24
15
pub mod os {
25
16
pub const FAMILY : & str = "unix" ;
26
- pub const OS : & str = "ios " ;
17
+ pub const OS : & str = "android " ;
27
18
pub const DLL_PREFIX : & str = "lib" ;
28
- pub const DLL_SUFFIX : & str = ".dylib " ;
29
- pub const DLL_EXTENSION : & str = "dylib " ;
19
+ pub const DLL_SUFFIX : & str = ".so " ;
20
+ pub const DLL_EXTENSION : & str = "so " ;
30
21
pub const EXE_SUFFIX : & str = "" ;
31
22
pub const EXE_EXTENSION : & str = "" ;
32
23
}
33
24
34
- #[ cfg( target_os = "tvos " ) ]
25
+ #[ cfg( target_os = "cygwin " ) ]
35
26
pub mod os {
36
27
pub const FAMILY : & str = "unix" ;
37
- pub const OS : & str = "tvos " ;
38
- pub const DLL_PREFIX : & str = "lib " ;
39
- pub const DLL_SUFFIX : & str = ".dylib " ;
40
- pub const DLL_EXTENSION : & str = "dylib " ;
41
- pub const EXE_SUFFIX : & str = "" ;
42
- pub const EXE_EXTENSION : & str = "" ;
28
+ pub const OS : & str = "cygwin " ;
29
+ pub const DLL_PREFIX : & str = "" ;
30
+ pub const DLL_SUFFIX : & str = ".dll " ;
31
+ pub const DLL_EXTENSION : & str = "dll " ;
32
+ pub const EXE_SUFFIX : & str = ".exe " ;
33
+ pub const EXE_EXTENSION : & str = "exe " ;
43
34
}
44
35
45
- #[ cfg( target_os = "watchos " ) ]
36
+ #[ cfg( target_os = "dragonfly " ) ]
46
37
pub mod os {
47
38
pub const FAMILY : & str = "unix" ;
48
- pub const OS : & str = "watchos " ;
39
+ pub const OS : & str = "dragonfly " ;
49
40
pub const DLL_PREFIX : & str = "lib" ;
50
- pub const DLL_SUFFIX : & str = ".dylib " ;
51
- pub const DLL_EXTENSION : & str = "dylib " ;
41
+ pub const DLL_SUFFIX : & str = ".so " ;
42
+ pub const DLL_EXTENSION : & str = "so " ;
52
43
pub const EXE_SUFFIX : & str = "" ;
53
44
pub const EXE_EXTENSION : & str = "" ;
54
45
}
55
46
56
- #[ cfg( target_os = "visionos" ) ]
47
+ #[ cfg( all ( target_os = "emscripten" , target_arch = "wasm32" ) ) ]
57
48
pub mod os {
58
49
pub const FAMILY : & str = "unix" ;
59
- pub const OS : & str = "visionos " ;
50
+ pub const OS : & str = "emscripten " ;
60
51
pub const DLL_PREFIX : & str = "lib" ;
61
- pub const DLL_SUFFIX : & str = ".dylib " ;
62
- pub const DLL_EXTENSION : & str = "dylib " ;
63
- pub const EXE_SUFFIX : & str = "" ;
64
- pub const EXE_EXTENSION : & str = "" ;
52
+ pub const DLL_SUFFIX : & str = ".so " ;
53
+ pub const DLL_EXTENSION : & str = "so " ;
54
+ pub const EXE_SUFFIX : & str = ".js " ;
55
+ pub const EXE_EXTENSION : & str = "js " ;
65
56
}
66
57
67
- #[ cfg( target_os = "freebsd " ) ]
58
+ #[ cfg( target_os = "espidf " ) ]
68
59
pub mod os {
69
60
pub const FAMILY : & str = "unix" ;
70
- pub const OS : & str = "freebsd " ;
61
+ pub const OS : & str = "espidf " ;
71
62
pub const DLL_PREFIX : & str = "lib" ;
72
63
pub const DLL_SUFFIX : & str = ".so" ;
73
64
pub const DLL_EXTENSION : & str = "so" ;
74
65
pub const EXE_SUFFIX : & str = "" ;
75
66
pub const EXE_EXTENSION : & str = "" ;
76
67
}
77
68
78
- #[ cfg( target_os = "dragonfly " ) ]
69
+ #[ cfg( target_os = "freebsd " ) ]
79
70
pub mod os {
80
71
pub const FAMILY : & str = "unix" ;
81
- pub const OS : & str = "dragonfly " ;
72
+ pub const OS : & str = "freebsd " ;
82
73
pub const DLL_PREFIX : & str = "lib" ;
83
74
pub const DLL_SUFFIX : & str = ".so" ;
84
75
pub const DLL_EXTENSION : & str = "so" ;
85
76
pub const EXE_SUFFIX : & str = "" ;
86
77
pub const EXE_EXTENSION : & str = "" ;
87
78
}
88
79
89
- #[ cfg( target_os = "netbsd " ) ]
80
+ #[ cfg( target_os = "fuchsia " ) ]
90
81
pub mod os {
91
82
pub const FAMILY : & str = "unix" ;
92
- pub const OS : & str = "netbsd " ;
83
+ pub const OS : & str = "fuchsia " ;
93
84
pub const DLL_PREFIX : & str = "lib" ;
94
85
pub const DLL_SUFFIX : & str = ".so" ;
95
86
pub const DLL_EXTENSION : & str = "so" ;
96
87
pub const EXE_SUFFIX : & str = "" ;
97
88
pub const EXE_EXTENSION : & str = "" ;
98
89
}
99
90
100
- #[ cfg( target_os = "openbsd " ) ]
91
+ #[ cfg( target_os = "haiku " ) ]
101
92
pub mod os {
102
93
pub const FAMILY : & str = "unix" ;
103
- pub const OS : & str = "openbsd " ;
94
+ pub const OS : & str = "haiku " ;
104
95
pub const DLL_PREFIX : & str = "lib" ;
105
96
pub const DLL_SUFFIX : & str = ".so" ;
106
97
pub const DLL_EXTENSION : & str = "so" ;
107
98
pub const EXE_SUFFIX : & str = "" ;
108
99
pub const EXE_EXTENSION : & str = "" ;
109
100
}
110
101
111
- #[ cfg( target_os = "cygwin" ) ]
112
- pub mod os {
113
- pub const FAMILY : & str = "unix" ;
114
- pub const OS : & str = "cygwin" ;
115
- pub const DLL_PREFIX : & str = "" ;
116
- pub const DLL_SUFFIX : & str = ".dll" ;
117
- pub const DLL_EXTENSION : & str = "dll" ;
118
- pub const EXE_SUFFIX : & str = ".exe" ;
119
- pub const EXE_EXTENSION : & str = "exe" ;
120
- }
121
-
122
- #[ cfg( target_os = "android" ) ]
102
+ #[ cfg( target_os = "horizon" ) ]
123
103
pub mod os {
124
104
pub const FAMILY : & str = "unix" ;
125
- pub const OS : & str = "android " ;
105
+ pub const OS : & str = "horizon " ;
126
106
pub const DLL_PREFIX : & str = "lib" ;
127
107
pub const DLL_SUFFIX : & str = ".so" ;
128
108
pub const DLL_EXTENSION : & str = "so" ;
129
- pub const EXE_SUFFIX : & str = "" ;
130
- pub const EXE_EXTENSION : & str = "" ;
109
+ pub const EXE_SUFFIX : & str = ".elf " ;
110
+ pub const EXE_EXTENSION : & str = "elf " ;
131
111
}
132
112
133
- #[ cfg( target_os = "solaris " ) ]
113
+ #[ cfg( target_os = "hurd " ) ]
134
114
pub mod os {
135
115
pub const FAMILY : & str = "unix" ;
136
- pub const OS : & str = "solaris " ;
116
+ pub const OS : & str = "hurd " ;
137
117
pub const DLL_PREFIX : & str = "lib" ;
138
118
pub const DLL_SUFFIX : & str = ".so" ;
139
119
pub const DLL_EXTENSION : & str = "so" ;
@@ -152,87 +132,87 @@ pub mod os {
152
132
pub const EXE_EXTENSION : & str = "" ;
153
133
}
154
134
155
- #[ cfg( target_os = "haiku " ) ]
135
+ #[ cfg( target_os = "ios " ) ]
156
136
pub mod os {
157
137
pub const FAMILY : & str = "unix" ;
158
- pub const OS : & str = "haiku " ;
138
+ pub const OS : & str = "ios " ;
159
139
pub const DLL_PREFIX : & str = "lib" ;
160
- pub const DLL_SUFFIX : & str = ".so " ;
161
- pub const DLL_EXTENSION : & str = "so " ;
140
+ pub const DLL_SUFFIX : & str = ".dylib " ;
141
+ pub const DLL_EXTENSION : & str = "dylib " ;
162
142
pub const EXE_SUFFIX : & str = "" ;
163
143
pub const EXE_EXTENSION : & str = "" ;
164
144
}
165
145
166
- #[ cfg( target_os = "horizon " ) ]
146
+ #[ cfg( target_os = "l4re " ) ]
167
147
pub mod os {
168
148
pub const FAMILY : & str = "unix" ;
169
- pub const OS : & str = "horizon " ;
149
+ pub const OS : & str = "l4re " ;
170
150
pub const DLL_PREFIX : & str = "lib" ;
171
151
pub const DLL_SUFFIX : & str = ".so" ;
172
152
pub const DLL_EXTENSION : & str = "so" ;
173
- pub const EXE_SUFFIX : & str = ".elf " ;
174
- pub const EXE_EXTENSION : & str = "elf " ;
153
+ pub const EXE_SUFFIX : & str = "" ;
154
+ pub const EXE_EXTENSION : & str = "" ;
175
155
}
176
156
177
- #[ cfg( target_os = "hurd " ) ]
157
+ #[ cfg( target_os = "linux " ) ]
178
158
pub mod os {
179
159
pub const FAMILY : & str = "unix" ;
180
- pub const OS : & str = "hurd " ;
160
+ pub const OS : & str = "linux " ;
181
161
pub const DLL_PREFIX : & str = "lib" ;
182
162
pub const DLL_SUFFIX : & str = ".so" ;
183
163
pub const DLL_EXTENSION : & str = "so" ;
184
164
pub const EXE_SUFFIX : & str = "" ;
185
165
pub const EXE_EXTENSION : & str = "" ;
186
166
}
187
167
188
- #[ cfg( target_os = "vita " ) ]
168
+ #[ cfg( target_os = "macos " ) ]
189
169
pub mod os {
190
170
pub const FAMILY : & str = "unix" ;
191
- pub const OS : & str = "vita " ;
171
+ pub const OS : & str = "macos " ;
192
172
pub const DLL_PREFIX : & str = "lib" ;
193
- pub const DLL_SUFFIX : & str = ".so " ;
194
- pub const DLL_EXTENSION : & str = "so " ;
195
- pub const EXE_SUFFIX : & str = ".elf " ;
196
- pub const EXE_EXTENSION : & str = "elf " ;
173
+ pub const DLL_SUFFIX : & str = ".dylib " ;
174
+ pub const DLL_EXTENSION : & str = "dylib " ;
175
+ pub const EXE_SUFFIX : & str = "" ;
176
+ pub const EXE_EXTENSION : & str = "" ;
197
177
}
198
178
199
- #[ cfg( all ( target_os = "emscripten" , target_arch = "wasm32" ) ) ]
179
+ #[ cfg( target_os = "netbsd" ) ]
200
180
pub mod os {
201
181
pub const FAMILY : & str = "unix" ;
202
- pub const OS : & str = "emscripten " ;
182
+ pub const OS : & str = "netbsd " ;
203
183
pub const DLL_PREFIX : & str = "lib" ;
204
184
pub const DLL_SUFFIX : & str = ".so" ;
205
185
pub const DLL_EXTENSION : & str = "so" ;
206
- pub const EXE_SUFFIX : & str = ".js " ;
207
- pub const EXE_EXTENSION : & str = "js " ;
186
+ pub const EXE_SUFFIX : & str = "" ;
187
+ pub const EXE_EXTENSION : & str = "" ;
208
188
}
209
189
210
- #[ cfg( target_os = "fuchsia " ) ]
190
+ #[ cfg( target_os = "nto " ) ]
211
191
pub mod os {
212
192
pub const FAMILY : & str = "unix" ;
213
- pub const OS : & str = "fuchsia " ;
193
+ pub const OS : & str = "nto " ;
214
194
pub const DLL_PREFIX : & str = "lib" ;
215
195
pub const DLL_SUFFIX : & str = ".so" ;
216
196
pub const DLL_EXTENSION : & str = "so" ;
217
197
pub const EXE_SUFFIX : & str = "" ;
218
198
pub const EXE_EXTENSION : & str = "" ;
219
199
}
220
200
221
- #[ cfg( target_os = "l4re " ) ]
201
+ #[ cfg( target_os = "nuttx " ) ]
222
202
pub mod os {
223
203
pub const FAMILY : & str = "unix" ;
224
- pub const OS : & str = "l4re " ;
204
+ pub const OS : & str = "nuttx " ;
225
205
pub const DLL_PREFIX : & str = "lib" ;
226
206
pub const DLL_SUFFIX : & str = ".so" ;
227
207
pub const DLL_EXTENSION : & str = "so" ;
228
208
pub const EXE_SUFFIX : & str = "" ;
229
209
pub const EXE_EXTENSION : & str = "" ;
230
210
}
231
211
232
- #[ cfg( target_os = "nto " ) ]
212
+ #[ cfg( target_os = "openbsd " ) ]
233
213
pub mod os {
234
214
pub const FAMILY : & str = "unix" ;
235
- pub const OS : & str = "nto " ;
215
+ pub const OS : & str = "openbsd " ;
236
216
pub const DLL_PREFIX : & str = "lib" ;
237
217
pub const DLL_SUFFIX : & str = ".so" ;
238
218
pub const DLL_EXTENSION : & str = "so" ;
@@ -262,46 +242,70 @@ pub mod os {
262
242
pub const EXE_EXTENSION : & str = "" ;
263
243
}
264
244
265
- #[ cfg( target_os = "vxworks " ) ]
245
+ #[ cfg( target_os = "solaris " ) ]
266
246
pub mod os {
267
247
pub const FAMILY : & str = "unix" ;
268
- pub const OS : & str = "vxworks " ;
248
+ pub const OS : & str = "solaris " ;
269
249
pub const DLL_PREFIX : & str = "lib" ;
270
250
pub const DLL_SUFFIX : & str = ".so" ;
271
251
pub const DLL_EXTENSION : & str = "so" ;
272
252
pub const EXE_SUFFIX : & str = "" ;
273
253
pub const EXE_EXTENSION : & str = "" ;
274
254
}
275
255
276
- #[ cfg( target_os = "espidf " ) ]
256
+ #[ cfg( target_os = "tvos " ) ]
277
257
pub mod os {
278
258
pub const FAMILY : & str = "unix" ;
279
- pub const OS : & str = "espidf " ;
259
+ pub const OS : & str = "tvos " ;
280
260
pub const DLL_PREFIX : & str = "lib" ;
281
- pub const DLL_SUFFIX : & str = ".so " ;
282
- pub const DLL_EXTENSION : & str = "so " ;
261
+ pub const DLL_SUFFIX : & str = ".dylib " ;
262
+ pub const DLL_EXTENSION : & str = "dylib " ;
283
263
pub const EXE_SUFFIX : & str = "" ;
284
264
pub const EXE_EXTENSION : & str = "" ;
285
265
}
286
266
287
- #[ cfg( target_os = "aix " ) ]
267
+ #[ cfg( target_os = "visionos " ) ]
288
268
pub mod os {
289
269
pub const FAMILY : & str = "unix" ;
290
- pub const OS : & str = "aix " ;
270
+ pub const OS : & str = "visionos " ;
291
271
pub const DLL_PREFIX : & str = "lib" ;
292
- pub const DLL_SUFFIX : & str = ".a " ;
293
- pub const DLL_EXTENSION : & str = "a " ;
272
+ pub const DLL_SUFFIX : & str = ".dylib " ;
273
+ pub const DLL_EXTENSION : & str = "dylib " ;
294
274
pub const EXE_SUFFIX : & str = "" ;
295
275
pub const EXE_EXTENSION : & str = "" ;
296
276
}
297
277
298
- #[ cfg( target_os = "nuttx " ) ]
278
+ #[ cfg( target_os = "vita " ) ]
299
279
pub mod os {
300
280
pub const FAMILY : & str = "unix" ;
301
- pub const OS : & str = "nuttx" ;
281
+ pub const OS : & str = "vita" ;
282
+ pub const DLL_PREFIX : & str = "lib" ;
283
+ pub const DLL_SUFFIX : & str = ".so" ;
284
+ pub const DLL_EXTENSION : & str = "so" ;
285
+ pub const EXE_SUFFIX : & str = ".elf" ;
286
+ pub const EXE_EXTENSION : & str = "elf" ;
287
+ }
288
+
289
+ #[ cfg( target_os = "vxworks" ) ]
290
+ pub mod os {
291
+ pub const FAMILY : & str = "unix" ;
292
+ pub const OS : & str = "vxworks" ;
302
293
pub const DLL_PREFIX : & str = "lib" ;
303
294
pub const DLL_SUFFIX : & str = ".so" ;
304
295
pub const DLL_EXTENSION : & str = "so" ;
305
296
pub const EXE_SUFFIX : & str = "" ;
306
297
pub const EXE_EXTENSION : & str = "" ;
307
298
}
299
+
300
+ #[ cfg( target_os = "watchos" ) ]
301
+ pub mod os {
302
+ pub const FAMILY : & str = "unix" ;
303
+ pub const OS : & str = "watchos" ;
304
+ pub const DLL_PREFIX : & str = "lib" ;
305
+ pub const DLL_SUFFIX : & str = ".dylib" ;
306
+ pub const DLL_EXTENSION : & str = "dylib" ;
307
+ pub const EXE_SUFFIX : & str = "" ;
308
+ pub const EXE_EXTENSION : & str = "" ;
309
+ }
310
+
311
+ // Keep entries sorted alphabetically.
0 commit comments