1+ //! Constants associated with each target.
2+
13// Keep entries sorted alphabetically.
24
35#[ cfg( target_os = "aix" ) ]
@@ -44,7 +46,7 @@ pub mod os {
4446 pub const EXE_EXTENSION : & str = "" ;
4547}
4648
47- #[ cfg( all ( target_os = "emscripten" , target_arch = "wasm32" ) ) ]
49+ #[ cfg( target_os = "emscripten" ) ]
4850pub mod os {
4951 pub const FAMILY : & str = "unix" ;
5052 pub const OS : & str = "emscripten" ;
@@ -99,6 +101,17 @@ pub mod os {
99101 pub const EXE_EXTENSION : & str = "" ;
100102}
101103
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+
102115#[ cfg( target_os = "horizon" ) ]
103116pub mod os {
104117 pub const FAMILY : & str = "unix" ;
@@ -242,6 +255,17 @@ pub mod os {
242255 pub const EXE_EXTENSION : & str = "" ;
243256}
244257
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+
245269#[ cfg( target_os = "solaris" ) ]
246270pub mod os {
247271 pub const FAMILY : & str = "unix" ;
@@ -253,6 +277,17 @@ pub mod os {
253277 pub const EXE_EXTENSION : & str = "" ;
254278}
255279
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+
256291#[ cfg( target_os = "tvos" ) ]
257292pub mod os {
258293 pub const FAMILY : & str = "unix" ;
@@ -264,6 +299,17 @@ pub mod os {
264299 pub const EXE_EXTENSION : & str = "" ;
265300}
266301
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+
267313#[ cfg( target_os = "visionos" ) ]
268314pub mod os {
269315 pub const FAMILY : & str = "unix" ;
@@ -297,6 +343,17 @@ pub mod os {
297343 pub const EXE_EXTENSION : & str = "" ;
298344}
299345
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+
300357#[ cfg( target_os = "watchos" ) ]
301358pub mod os {
302359 pub const FAMILY : & str = "unix" ;
@@ -307,3 +364,14 @@ pub mod os {
307364 pub const EXE_SUFFIX : & str = "" ;
308365 pub const EXE_EXTENSION : & str = "" ;
309366}
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