std/sys/net/
mod.rs

1cfg_select! {
2    any(
3        all(target_family = "unix", not(target_os = "l4re")),
4        target_os = "windows",
5        target_os = "hermit",
6        all(target_os = "wasi", target_env = "p2"),
7        target_os = "solid_asp3",
8    ) => {
9        mod connection {
10            mod socket;
11            pub use socket::*;
12        }
13    }
14    all(target_vendor = "fortanix", target_env = "sgx") => {
15        mod connection {
16            mod sgx;
17            pub use sgx::*;
18        }
19    }
20    all(target_os = "wasi", target_env = "p1") => {
21        mod connection {
22            mod wasip1;
23            pub use wasip1::*;
24        }
25    }
26    target_os = "xous" => {
27        mod connection {
28            mod xous;
29            pub use xous::*;
30        }
31    }
32    target_os = "uefi" => {
33        mod connection {
34            mod uefi;
35            pub use uefi::*;
36        }
37    }
38    _ => {
39        mod connection {
40            mod unsupported;
41            pub use unsupported::*;
42        }
43    }
44}
45
46pub use connection::*;