Skip to content

Commit 612a94b

Browse files
yoshuawuytsStjepan Glavina
authored and
Stjepan Glavina
committed
Add process submodule as unstable (#310)
Signed-off-by: Yoshua Wuyts <[email protected]>
1 parent e1deaa5 commit 612a94b

File tree

2 files changed

+16
-0
lines changed

2 files changed

+16
-0
lines changed

Diff for: src/lib.rs

+2
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,8 @@ cfg_if! {
6666
pub mod path;
6767
#[cfg_attr(feature = "docs", doc(cfg(unstable)))]
6868
pub mod pin;
69+
#[cfg_attr(feature = "docs", doc(cfg(unstable)))]
70+
pub mod process;
6971

7072
mod unit;
7173
mod vec;

Diff for: src/process/mod.rs

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
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+
// Re-export structs.
11+
pub use std::process::{ExitStatus, Output};
12+
13+
// Re-export functions.
14+
pub use std::process::{abort, exit, id};

0 commit comments

Comments
 (0)