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