diff --git a/src/lib.rs b/src/lib.rs index cef50ae..3ad178c 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -66,6 +66,8 @@ cfg_if! { pub mod path; #[cfg_attr(feature = "docs", doc(cfg(unstable)))] pub mod pin; + #[cfg_attr(feature = "docs", doc(cfg(unstable)))] + pub mod process; mod unit; mod vec; diff --git a/src/process/mod.rs b/src/process/mod.rs new file mode 100644 index 0000000..630c5b9 --- /dev/null +++ b/src/process/mod.rs @@ -0,0 +1,14 @@ +//! A module for working with processes. +//! +//! This module is mostly concerned with spawning and interacting with child processes, but it also +//! provides abort and exit for terminating the current process. +//! +//! This is an async version of [`std::process`]. +//! +//! [`std::process`]: https://doc.rust-lang.org/std/process/index.html + +// Re-export structs. +pub use std::process::{ExitStatus, Output}; + +// Re-export functions. +pub use std::process::{abort, exit, id};