mirror of
https://github.com/tokio-rs/tokio.git
synced 2025-10-01 12:20:39 +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"]
|
tracing = ["tracing-core"]
|
||||||
udp = ["io", "tokio-net/udp"]
|
udp = ["io", "tokio-net/udp"]
|
||||||
uds = ["io", "tokio-net/uds"]
|
uds = ["io", "tokio-net/uds"]
|
||||||
|
process = ["io", "tokio-net/process"]
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
futures-core-preview = "=0.3.0-alpha.18"
|
futures-core-preview = "=0.3.0-alpha.18"
|
||||||
|
@ -65,6 +65,12 @@ pub mod signal {
|
|||||||
pub use tokio_net::signal::ctrl_c;
|
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"))]
|
#[cfg(all(unix, feature = "uds"))]
|
||||||
pub mod unix {
|
pub mod unix {
|
||||||
//! Unix domain socket bindings for `tokio` (only available on unix systems).
|
//! Unix domain socket bindings for `tokio` (only available on unix systems).
|
||||||
|
Loading…
x
Reference in New Issue
Block a user