1 pub use self::process_common::{Command, CommandArgs, ExitCode, Stdio, StdioPipes}; 2 pub use self::process_inner::{ExitStatus, ExitStatusError, Process}; 3 pub use crate::std::ffi::OsString as EnvKey; 4 pub use crate::std::sys_common::process::CommandEnvs; 5 6 #[cfg_attr(any(target_os = "espidf", target_os = "horizon"), allow(unused))] 7 mod process_common; 8 9 cfg_if::cfg_if! { 10 if #[cfg(target_os = "fuchsia")] { 11 #[path = "process_fuchsia.rs"] 12 mod process_inner; 13 mod zircon; 14 } else if #[cfg(target_os = "vxworks")] { 15 #[path = "process_vxworks.rs"] 16 mod process_inner; 17 } else if #[cfg(any(target_os = "espidf", target_os = "horizon", target_os = "vita"))] { 18 #[path = "process_unsupported.rs"] 19 mod process_inner; 20 } else { 21 #[path = "process_unix.rs"] 22 mod process_inner; 23 } 24 } 25