Add process submodule as unstable (#310)

Signed-off-by: Yoshua Wuyts <yoshuawuyts@gmail.com>
This commit is contained in:
Yoshua Wuyts 2019-10-14 15:51:47 +02:00 committed by Stjepan Glavina
parent e1deaa58d8
commit 612a94b31e
2 changed files with 16 additions and 0 deletions

View file

@ -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;

14
src/process/mod.rs Normal file
View file

@ -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};