std/sys/stdio/
mod.rs

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 = "trusty")] {
23        mod trusty;
24        pub use trusty::*;
25    } else if #[cfg(target_os = "uefi")] {
26        mod uefi;
27        pub use uefi::*;
28    } else if #[cfg(target_os = "wasi")] {
29        mod wasi;
30        pub use wasi::*;
31    } else if #[cfg(target_os = "xous")] {
32        mod xous;
33        pub use xous::*;
34    } else if #[cfg(target_os = "zkvm")] {
35        mod zkvm;
36        pub use zkvm::*;
37    } else {
38        mod unsupported;
39        pub use unsupported::*;
40    }
41}