mirror of
https://github.com/fafhrd91/actix-net
synced 2024-11-23 21:51:06 +01:00
re-export net primitives
This commit is contained in:
parent
bec4efc699
commit
503c2feb08
@ -22,7 +22,7 @@ actix-macros = "0.1.0-alpha.1"
|
||||
actix-threadpool = "0.2"
|
||||
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-net = "=0.2.0-alpha.6"
|
||||
tokio-timer = "=0.3.0-alpha.6"
|
||||
|
@ -52,3 +52,15 @@ pub mod time {
|
||||
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::*;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user