std/sys/process/unix/
mod.rs
1#[cfg_attr(any(target_os = "espidf", target_os = "horizon", target_os = "nuttx"), allow(unused))]
2mod common;
3
4cfg_if::cfg_if! {
5 if #[cfg(target_os = "fuchsia")] {
6 mod fuchsia;
7 use fuchsia as imp;
8 } else if #[cfg(target_os = "vxworks")] {
9 mod vxworks;
10 use vxworks as imp;
11 } else if #[cfg(any(target_os = "espidf", target_os = "horizon", target_os = "vita", target_os = "nuttx"))] {
12 mod unsupported;
13 use unsupported as imp;
14 pub use unsupported::output;
15 } else {
16 mod unix;
17 use unix as imp;
18 }
19}
20
21pub use imp::{ExitStatus, ExitStatusError, Process};
22
23pub use self::common::{Command, CommandArgs, ExitCode, Stdio, StdioPipes};
24pub use crate::ffi::OsString as EnvKey;