mirror of
https://github.com/tokio-rs/tokio.git
synced 2025-09-28 12:10:37 +00:00
tokio: add process feature (#1561)
This commit is contained in:
parent
6611b32cce
commit
ff186a4d03
@ -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"
|
||||
|
@ -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).
|
||||
|
Loading…
x
Reference in New Issue
Block a user