aboutsummaryrefslogtreecommitdiff
path: root/core/src/async_runtime/net.rs
blob: 5c004ceaf4715a92d3b9decb9074521767680eb2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
pub use std::os::unix::net::SocketAddr;

#[cfg(feature = "smol")]
pub use smol::net::{
    unix::{SocketAddr as UnixSocketAddr, UnixListener, UnixStream},
    TcpListener, TcpStream, UdpSocket,
};

#[cfg(feature = "tokio")]
pub use tokio::net::{
    unix::SocketAddr as UnixSocketAddr, TcpListener, TcpStream, UdpSocket, UnixListener, UnixStream,
};