1
+ //! Constants associated with each target.
2
+
1
3
// Keep entries sorted alphabetically.
2
4
3
5
#[ cfg( target_os = "aix" ) ]
@@ -44,7 +46,7 @@ pub mod os {
44
46
pub const EXE_EXTENSION : & str = "" ;
45
47
}
46
48
47
- #[ cfg( all ( target_os = "emscripten" , target_arch = "wasm32" ) ) ]
49
+ #[ cfg( target_os = "emscripten" ) ]
48
50
pub mod os {
49
51
pub const FAMILY : & str = "unix" ;
50
52
pub const OS : & str = "emscripten" ;
@@ -99,6 +101,17 @@ pub mod os {
99
101
pub const EXE_EXTENSION : & str = "" ;
100
102
}
101
103
104
+ #[ cfg( target_os = "hermit" ) ]
105
+ pub mod os {
106
+ pub const FAMILY : & str = "" ;
107
+ pub const OS : & str = "hermit" ;
108
+ pub const DLL_PREFIX : & str = "" ;
109
+ pub const DLL_SUFFIX : & str = "" ;
110
+ pub const DLL_EXTENSION : & str = "" ;
111
+ pub const EXE_SUFFIX : & str = "" ;
112
+ pub const EXE_EXTENSION : & str = "" ;
113
+ }
114
+
102
115
#[ cfg( target_os = "horizon" ) ]
103
116
pub mod os {
104
117
pub const FAMILY : & str = "unix" ;
@@ -242,6 +255,17 @@ pub mod os {
242
255
pub const EXE_EXTENSION : & str = "" ;
243
256
}
244
257
258
+ #[ cfg( all( target_vendor = "fortanix" , target_env = "sgx" ) ) ]
259
+ pub mod os {
260
+ pub const FAMILY : & str = "" ;
261
+ pub const OS : & str = "" ;
262
+ pub const DLL_PREFIX : & str = "" ;
263
+ pub const DLL_SUFFIX : & str = ".sgxs" ;
264
+ pub const DLL_EXTENSION : & str = "sgxs" ;
265
+ pub const EXE_SUFFIX : & str = ".sgxs" ;
266
+ pub const EXE_EXTENSION : & str = "sgxs" ;
267
+ }
268
+
245
269
#[ cfg( target_os = "solaris" ) ]
246
270
pub mod os {
247
271
pub const FAMILY : & str = "unix" ;
@@ -253,6 +277,17 @@ pub mod os {
253
277
pub const EXE_EXTENSION : & str = "" ;
254
278
}
255
279
280
+ #[ cfg( target_os = "solid_asp3" ) ]
281
+ pub mod os {
282
+ pub const FAMILY : & str = "itron" ;
283
+ pub const OS : & str = "solid" ;
284
+ pub const DLL_PREFIX : & str = "" ;
285
+ pub const DLL_SUFFIX : & str = ".so" ;
286
+ pub const DLL_EXTENSION : & str = "so" ;
287
+ pub const EXE_SUFFIX : & str = "" ;
288
+ pub const EXE_EXTENSION : & str = "" ;
289
+ }
290
+
256
291
#[ cfg( target_os = "tvos" ) ]
257
292
pub mod os {
258
293
pub const FAMILY : & str = "unix" ;
@@ -264,6 +299,17 @@ pub mod os {
264
299
pub const EXE_EXTENSION : & str = "" ;
265
300
}
266
301
302
+ #[ cfg( target_os = "uefi" ) ]
303
+ pub mod os {
304
+ pub const FAMILY : & str = "" ;
305
+ pub const OS : & str = "uefi" ;
306
+ pub const DLL_PREFIX : & str = "" ;
307
+ pub const DLL_SUFFIX : & str = "" ;
308
+ pub const DLL_EXTENSION : & str = "" ;
309
+ pub const EXE_SUFFIX : & str = ".efi" ;
310
+ pub const EXE_EXTENSION : & str = "efi" ;
311
+ }
312
+
267
313
#[ cfg( target_os = "visionos" ) ]
268
314
pub mod os {
269
315
pub const FAMILY : & str = "unix" ;
@@ -297,6 +343,17 @@ pub mod os {
297
343
pub const EXE_EXTENSION : & str = "" ;
298
344
}
299
345
346
+ #[ cfg( all( target_family = "wasm" , not( any( target_os = "emscripten" , target_os = "linux" ) ) ) ) ]
347
+ pub mod os {
348
+ pub const FAMILY : & str = "" ;
349
+ pub const OS : & str = "" ;
350
+ pub const DLL_PREFIX : & str = "" ;
351
+ pub const DLL_SUFFIX : & str = ".wasm" ;
352
+ pub const DLL_EXTENSION : & str = "wasm" ;
353
+ pub const EXE_SUFFIX : & str = ".wasm" ;
354
+ pub const EXE_EXTENSION : & str = "wasm" ;
355
+ }
356
+
300
357
#[ cfg( target_os = "watchos" ) ]
301
358
pub mod os {
302
359
pub const FAMILY : & str = "unix" ;
@@ -307,3 +364,14 @@ pub mod os {
307
364
pub const EXE_SUFFIX : & str = "" ;
308
365
pub const EXE_EXTENSION : & str = "" ;
309
366
}
367
+
368
+ #[ cfg( target_os = "windows" ) ]
369
+ pub mod os {
370
+ pub const FAMILY : & str = "windows" ;
371
+ pub const OS : & str = "windows" ;
372
+ pub const DLL_PREFIX : & str = "" ;
373
+ pub const DLL_SUFFIX : & str = ".dll" ;
374
+ pub const DLL_EXTENSION : & str = "dll" ;
375
+ pub const EXE_SUFFIX : & str = ".exe" ;
376
+ pub const EXE_EXTENSION : & str = "exe" ;
377
+ }
0 commit comments