std/sys/fd/mod.rs
1//! Platform-dependent file descriptor abstraction.
2
3#![forbid(unsafe_op_in_unsafe_fn)]
4
5cfg_select! {
6    target_family = "unix" => {
7        mod unix;
8        pub use unix::*;
9    }
10    target_os = "hermit" => {
11        mod hermit;
12        pub use hermit::*;
13    }
14    target_os = "motor" => {
15        mod motor;
16        pub use motor::*;
17    }
18    all(target_vendor = "fortanix", target_env = "sgx") => {
19        mod sgx;
20        pub use sgx::*;
21    }
22    target_os = "wasi" => {
23        mod wasi;
24        pub use wasi::*;
25    }
26    _ => {}
27}