Skip to content

Commit 1f6bb8b

Browse files
feat: add process module
Reexport based on async-process
1 parent 7303500 commit 1f6bb8b

File tree

2 files changed

+7
-6
lines changed

2 files changed

+7
-6
lines changed

Cargo.toml

+3-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,8 @@ default = [
3737
docs = ["attributes", "unstable", "default"]
3838
unstable = [
3939
"std",
40-
"async-io"
40+
"async-io",
41+
"async-process",
4142
]
4243
attributes = ["async-attributes"]
4344
std = [
@@ -74,6 +75,7 @@ once_cell = { version = "1.3.1", optional = true }
7475
pin-project-lite = { version = "0.2.0", optional = true }
7576
pin-utils = { version = "0.1.0-alpha.4", optional = true }
7677
slab = { version = "0.4.2", optional = true }
78+
async-process = { version = "1.0.1", optional = true }
7779

7880
# Devdepencency, but they are not allowed to be optional :/
7981
surf = { version = "2.0.0", optional = true }

src/process/mod.rs renamed to src/process.rs

+4-5
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,7 @@
77
//!
88
//! [`std::process`]: https://doc.rust-lang.org/std/process/index.html
99
10-
// Re-export structs.
11-
pub use std::process::{ExitStatus, Output};
12-
13-
// Re-export functions.
14-
pub use std::process::{abort, exit, id};
10+
#[cfg(feature = "unstable")]
11+
#[cfg_attr(feature = "docs", doc(cfg(unstable)))]
12+
#[doc(inline)]
13+
pub use async_process::*;

0 commit comments

Comments
 (0)