tokio: move signal and process reexports to crate root (#1643)

This commit is contained in:
Ivan Petkov
2019-10-11 11:00:39 -07:00
committed by GitHub
parent 804dbd6f8e
commit 741bef8fe1
7 changed files with 16 additions and 16 deletions
+2
View File
@@ -29,7 +29,9 @@ default = [
"fs",
"io",
"net",
"process",
"rt-full",
"signal",
"sync",
"timer",
]
+4
View File
@@ -92,6 +92,10 @@ pub mod io;
#[cfg(any(feature = "tcp", feature = "udp", feature = "uds"))]
pub mod net;
pub mod prelude;
#[cfg(feature = "process")]
pub mod process;
#[cfg(feature = "signal")]
pub mod signal;
pub mod stream;
#[cfg(feature = "sync")]
pub mod sync;
-14
View File
@@ -57,20 +57,6 @@ pub mod udp {
#[cfg(feature = "udp")]
pub use self::udp::{UdpFramed, UdpSocket};
#[cfg(feature = "signal")]
pub mod signal {
//! Asynchronous signal handling for `tokio`. ctrl-C notifications are
//! supported on both unix and windows systems. For finer grained signal
//! handling support on unix systems, see `tokio_net::signal::unix::Signal`.
pub use tokio_net::signal::ctrl_c;
}
#[cfg(feature = "process")]
pub mod process {
//! An implementation of asynchronous process management for Tokio.
pub use tokio_net::process::{Child, ChildStderr, ChildStdin, ChildStdout, Command};
}
#[cfg(all(unix, feature = "uds"))]
pub mod unix {
//! Unix domain socket bindings for `tokio` (only available on unix systems).
+2
View File
@@ -0,0 +1,2 @@
//! An implementation of asynchronous process management for Tokio.
pub use tokio_net::process::{Child, ChildStderr, ChildStdin, ChildStdout, Command};
+4
View File
@@ -0,0 +1,4 @@
//! Asynchronous signal handling for `tokio`. ctrl-C notifications are
//! supported on both unix and windows systems. For finer grained signal
//! handling support on unix systems, see `tokio_net::signal::unix::Signal`.
pub use tokio_net::signal::ctrl_c;