Expose tokio_uds from the root crate (#526)

This commit is contained in:
Martin Chaine
2018-08-15 21:26:10 -07:00
committed by Carl Lerche
parent 6b84c73f12
commit 2b1b0ac858
3 changed files with 19 additions and 0 deletions
+13
View File
@@ -39,3 +39,16 @@
pub use tokio_tcp::{TcpStream, ConnectFuture};
pub use tokio_tcp::{TcpListener, Incoming};
pub use tokio_udp::{UdpSocket, UdpFramed, SendDgram, RecvDgram};
#[cfg(unix)]
pub mod unix {
//! Unix domain socket bindings for `tokio`.
pub use tokio_uds::{
ConnectFuture, Incoming, RecvDgram, SendDgram, UCred, UnixDatagram, UnixListener,
UnixStream,
};
}
#[cfg(unix)]
pub use self::unix::{UnixListener, UnixStream};