diff options
| author | joboet <jonasboettiger@icloud.com> | 2025-08-12 18:37:07 +0200 |
|---|---|---|
| committer | joboet <jonasboettiger@icloud.com> | 2025-09-08 16:58:43 +0200 |
| commit | 207a01e88f05f028f7a6c0db0d324fbedb8178a4 (patch) | |
| tree | 9665039af87815fc46c76329bcd80d93d2d09499 /library/std/src/sys/net/mod.rs | |
| parent | 41f2b6b39e7526a28d50ff6918dda6de48add5e4 (diff) | |
| download | rust-207a01e88f05f028f7a6c0db0d324fbedb8178a4.tar.gz rust-207a01e88f05f028f7a6c0db0d324fbedb8178a4.zip | |
std: make address resolution weirdness local to SGX
Diffstat (limited to 'library/std/src/sys/net/mod.rs')
| -rw-r--r-- | library/std/src/sys/net/mod.rs | 48 |
1 files changed, 3 insertions, 45 deletions
diff --git a/library/std/src/sys/net/mod.rs b/library/std/src/sys/net/mod.rs index 5df1fe138ab..dffc4ea7f81 100644 --- a/library/std/src/sys/net/mod.rs +++ b/library/std/src/sys/net/mod.rs @@ -1,46 +1,4 @@ -cfg_select! { - any( - all(target_family = "unix", not(target_os = "l4re")), - target_os = "windows", - target_os = "hermit", - all(target_os = "wasi", target_env = "p2"), - target_os = "solid_asp3", - ) => { - mod connection { - mod socket; - pub use socket::*; - } - } - all(target_vendor = "fortanix", target_env = "sgx") => { - mod connection { - mod sgx; - pub use sgx::*; - } - } - all(target_os = "wasi", target_env = "p1") => { - mod connection { - mod wasip1; - pub use wasip1::*; - } - } - target_os = "xous" => { - mod connection { - mod xous; - pub use xous::*; - } - } - target_os = "uefi" => { - mod connection { - mod uefi; - pub use uefi::*; - } - } - _ => { - mod connection { - mod unsupported; - pub use unsupported::*; - } - } -} - +/// This module contains the implementations of `TcpStream`, `TcpListener` and +/// `UdpSocket` as well as related functionality like DNS resolving. +mod connection; pub use connection::*; |
