1#![forbid(unsafe_op_in_unsafe_fn)]
2
3cfg_if::cfg_if! {
4 if #[cfg(any(
5 target_family = "unix",
6 target_os = "hermit"
7 ))] {
8 mod unix;
9 pub use unix::*;
10 } else if #[cfg(target_os = "windows")] {
11 mod windows;
12 pub use windows::*;
13 } else if #[cfg(all(target_vendor = "fortanix", target_env = "sgx"))] {
14 mod sgx;
15 pub use sgx::*;
16 } else if #[cfg(target_os = "solid_asp3")] {
17 mod solid;
18 pub use solid::*;
19 } else if #[cfg(target_os = "teeos")] {
20 mod teeos;
21 pub use teeos::*;
22 } else if #[cfg(target_os = "uefi")] {
23 mod uefi;
24 pub use uefi::*;
25 } else if #[cfg(target_os = "wasi")] {
26 mod wasi;
27 pub use wasi::*;
28 } else if #[cfg(target_os = "xous")] {
29 mod xous;
30 pub use xous::*;
31 } else if #[cfg(target_os = "zkvm")] {
32 mod zkvm;
33 pub use zkvm::*;
34 } else {
35 mod unsupported;
36 pub use unsupported::*;
37 }
38}