async_std/
process.rs

1//! A module for working with processes.
2//!
3//! This module is mostly concerned with spawning and interacting with child processes, but it also
4//! provides abort and exit for terminating the current process.
5//!
6//! This is an async version of [`std::process`].
7//!
8//! [`std::process`]: https://doc.rust-lang.org/std/process/index.html
9
10#[cfg_attr(feature = "docs", doc(cfg(unstable)))]
11#[doc(inline)]
12pub use async_process::ExitStatus;
13
14#[cfg_attr(feature = "docs", doc(cfg(unstable)))]
15#[doc(inline)]
16pub use async_process::Output;
17
18#[cfg_attr(feature = "docs", doc(cfg(unstable)))]
19#[doc(inline)]
20pub use async_process::Stdio;
21
22#[cfg_attr(feature = "docs", doc(cfg(unstable)))]
23#[doc(inline)]
24pub use async_process::Child;
25
26#[cfg_attr(feature = "docs", doc(cfg(unstable)))]
27#[doc(inline)]
28pub use async_process::ChildStderr;
29
30#[cfg_attr(feature = "docs", doc(cfg(unstable)))]
31#[doc(inline)]
32pub use async_process::ChildStdin;
33
34#[cfg_attr(feature = "docs", doc(cfg(unstable)))]
35#[doc(inline)]
36pub use async_process::ChildStdout;
37
38#[cfg_attr(feature = "docs", doc(cfg(unstable)))]
39#[doc(inline)]
40pub use async_process::Command;
41
42// Re-export functions.
43pub use std::process::{abort, exit, id};