1
0
mirror of https://github.com/fafhrd91/actix-net synced 2024-11-24 00:01:11 +01:00

re-export net primitives

This commit is contained in:
Nikolay Kim 2019-12-01 10:56:25 +06:00
parent bec4efc699
commit 503c2feb08
2 changed files with 13 additions and 1 deletions

View File

@ -22,7 +22,7 @@ actix-macros = "0.1.0-alpha.1"
actix-threadpool = "0.2" actix-threadpool = "0.2"
futures = "0.3.1" futures = "0.3.1"
tokio = "=0.2.0-alpha.6" tokio = { version = "=0.2.0-alpha.6", features=["tcp","uds","udp"] }
tokio-executor = "=0.2.0-alpha.6" tokio-executor = "=0.2.0-alpha.6"
tokio-net = "=0.2.0-alpha.6" tokio-net = "=0.2.0-alpha.6"
tokio-timer = "=0.3.0-alpha.6" tokio-timer = "=0.3.0-alpha.6"

View File

@ -52,3 +52,15 @@ pub mod time {
Interval::new(start, duration) Interval::new(start, duration)
} }
} }
pub mod net {
pub use tokio::net::UdpSocket;
pub use tokio::net::{TcpListener, TcpStream};
#[cfg(unix)]
mod unix {
pub use tokio::net::{UnixDatagram, UnixListener, UnixStream};
}
pub use self::unix::*;
}