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