tokio: add process feature (#1561)

This commit is contained in:
Kirill Mironov 2019-09-20 05:03:58 +03:00 committed by Ivan Petkov
parent 6611b32cce
commit ff186a4d03
2 changed files with 7 additions and 0 deletions

View File

@ -55,6 +55,7 @@ timer = ["tokio-timer"]
tracing = ["tracing-core"]
udp = ["io", "tokio-net/udp"]
uds = ["io", "tokio-net/uds"]
process = ["io", "tokio-net/process"]
[dependencies]
futures-core-preview = "=0.3.0-alpha.18"

View File

@ -65,6 +65,12 @@ pub mod 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).