2
0
Fork 1
mirror of https://github.com/async-rs/async-std.git synced 2025-01-16 10:49:55 +00:00

feat: add process module

Reexport based on async-process
This commit is contained in:
dignifiedquire 2020-12-01 15:51:38 +01:00
parent 73035006dc
commit 1f6bb8b01a
2 changed files with 7 additions and 6 deletions

View file

@ -37,7 +37,8 @@ default = [
docs = ["attributes", "unstable", "default"] docs = ["attributes", "unstable", "default"]
unstable = [ unstable = [
"std", "std",
"async-io" "async-io",
"async-process",
] ]
attributes = ["async-attributes"] attributes = ["async-attributes"]
std = [ std = [
@ -74,6 +75,7 @@ once_cell = { version = "1.3.1", optional = true }
pin-project-lite = { version = "0.2.0", optional = true } pin-project-lite = { version = "0.2.0", optional = true }
pin-utils = { version = "0.1.0-alpha.4", optional = true } pin-utils = { version = "0.1.0-alpha.4", optional = true }
slab = { version = "0.4.2", 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 :/ # Devdepencency, but they are not allowed to be optional :/
surf = { version = "2.0.0", optional = true } surf = { version = "2.0.0", optional = true }

View file

@ -7,8 +7,7 @@
//! //!
//! [`std::process`]: https://doc.rust-lang.org/std/process/index.html //! [`std::process`]: https://doc.rust-lang.org/std/process/index.html
// Re-export structs. #[cfg(feature = "unstable")]
pub use std::process::{ExitStatus, Output}; #[cfg_attr(feature = "docs", doc(cfg(unstable)))]
#[doc(inline)]
// Re-export functions. pub use async_process::*;
pub use std::process::{abort, exit, id};