1#![forbid(unsafe_op_in_unsafe_fn)]
4
5#[cfg(any(
6 all(target_family = "unix", not(any(target_os = "espidf", target_os = "vita"))),
7 target_family = "windows",
8 target_os = "hermit",
9 target_os = "uefi",
10 target_os = "wasi",
11 target_os = "xous",
12))]
13mod common;
14
15cfg_select! {
16 any(
17 all(target_family = "unix", not(any(target_os = "espidf", target_os = "vita"))),
18 target_os = "hermit",
19 ) => {
20 mod unix;
21 pub use unix::*;
22 }
23 target_family = "windows" => {
24 mod windows;
25 pub use windows::*;
26 }
27 all(target_vendor = "fortanix", target_env = "sgx") => {
28 mod sgx;
29 pub use sgx::*;
30 }
31 target_os = "uefi" => {
32 mod uefi;
33 pub use uefi::*;
34 }
35 target_os = "wasi" => {
36 mod wasi;
37 pub use wasi::*;
38 }
39 target_os = "xous" => {
40 mod xous;
41 pub use xous::*;
42 }
43 target_os = "zkvm" => {
44 mod zkvm;
45 pub use zkvm::*;
46 }
47 _ => {
48 mod unsupported;
49 pub use unsupported::*;
50 }
51}