From 1f6bb8b01af18f8180ef36c126f65c379e3b3c11 Mon Sep 17 00:00:00 2001 From: dignifiedquire Date: Tue, 1 Dec 2020 15:51:38 +0100 Subject: [PATCH] feat: add process module Reexport based on async-process --- Cargo.toml | 4 +++- src/{process/mod.rs => process.rs} | 9 ++++----- 2 files changed, 7 insertions(+), 6 deletions(-) rename src/{process/mod.rs => process.rs} (72%) diff --git a/Cargo.toml b/Cargo.toml index eaa2d028..9fdb7d09 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -37,7 +37,8 @@ default = [ docs = ["attributes", "unstable", "default"] unstable = [ "std", - "async-io" + "async-io", + "async-process", ] attributes = ["async-attributes"] std = [ @@ -74,6 +75,7 @@ once_cell = { version = "1.3.1", optional = true } pin-project-lite = { version = "0.2.0", optional = true } pin-utils = { version = "0.1.0-alpha.4", optional = true } slab = { version = "0.4.2", optional = true } +async-process = { version = "1.0.1", optional = true } # Devdepencency, but they are not allowed to be optional :/ surf = { version = "2.0.0", optional = true } diff --git a/src/process/mod.rs b/src/process.rs similarity index 72% rename from src/process/mod.rs rename to src/process.rs index 630c5b9b..418d2bb3 100644 --- a/src/process/mod.rs +++ b/src/process.rs @@ -7,8 +7,7 @@ //! //! [`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}; +#[cfg(feature = "unstable")] +#[cfg_attr(feature = "docs", doc(cfg(unstable)))] +#[doc(inline)] +pub use async_process::*;