Skip to content

Commit 7b896c0

Browse files
manual reexports
1 parent 1f6bb8b commit 7b896c0

File tree

4 files changed

+40
-3
lines changed

4 files changed

+40
-3
lines changed

src/lib.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -313,7 +313,7 @@ cfg_default! {
313313

314314
cfg_unstable! {
315315
pub mod pin;
316-
#[cfg(not(target_os = "unknown"))]
316+
#[cfg(all(not(target_os = "unknown"), feature = "std"))]
317317
pub mod process;
318318

319319
mod unit;

src/os/unix/mod.rs

+5
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,8 @@ cfg_default! {
88
pub mod fs;
99
pub mod net;
1010
}
11+
12+
#[cfg(all(feature = "unstable", feature = "std"))]
13+
#[cfg_attr(feature = "docs", doc(cfg(unstable)))]
14+
#[doc(inline)]
15+
pub use async_process::unix as process;

src/os/windows/mod.rs

+5
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,8 @@ cfg_unstable! {
88
#[cfg(feature = "default")]
99
pub mod fs;
1010
}
11+
12+
#[cfg(all(feature = "unstable", feature = "std"))]
13+
#[cfg_attr(feature = "docs", doc(cfg(unstable)))]
14+
#[doc(inline)]
15+
pub use async_process::windows as process;

src/process.rs

+29-2
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,34 @@
77
//!
88
//! [`std::process`]: https://doc.rust-lang.org/std/process/index.html
99
10-
#[cfg(feature = "unstable")]
1110
#[cfg_attr(feature = "docs", doc(cfg(unstable)))]
1211
#[doc(inline)]
13-
pub use async_process::*;
12+
pub use async_process::ExitStatus;
13+
14+
#[cfg_attr(feature = "docs", doc(cfg(unstable)))]
15+
#[doc(inline)]
16+
pub use async_process::Output;
17+
18+
#[cfg_attr(feature = "docs", doc(cfg(unstable)))]
19+
#[doc(inline)]
20+
pub use async_process::Stdio;
21+
22+
#[cfg_attr(feature = "docs", doc(cfg(unstable)))]
23+
#[doc(inline)]
24+
pub use async_process::Child;
25+
26+
#[cfg_attr(feature = "docs", doc(cfg(unstable)))]
27+
#[doc(inline)]
28+
pub use async_process::ChildStderr;
29+
30+
#[cfg_attr(feature = "docs", doc(cfg(unstable)))]
31+
#[doc(inline)]
32+
pub use async_process::ChildStdin;
33+
34+
#[cfg_attr(feature = "docs", doc(cfg(unstable)))]
35+
#[doc(inline)]
36+
pub use async_process::ChildStdout;
37+
38+
#[cfg_attr(feature = "docs", doc(cfg(unstable)))]
39+
#[doc(inline)]
40+
pub use async_process::Command;

0 commit comments

Comments
 (0)