| 1 | #[cfg_attr (any(target_os = "espidf" , target_os = "horizon" , target_os = "nuttx" ), allow(unused))] |
| 2 | mod common; |
| 3 | |
| 4 | cfg_select! { |
| 5 | target_os = "fuchsia" => { |
| 6 | mod fuchsia; |
| 7 | use fuchsia as imp; |
| 8 | } |
| 9 | target_os = "vxworks" => { |
| 10 | mod vxworks; |
| 11 | use vxworks as imp; |
| 12 | } |
| 13 | any(target_os = "espidf" , target_os = "horizon" , target_os = "vita" , target_os = "nuttx" ) => { |
| 14 | mod unsupported; |
| 15 | use unsupported as imp; |
| 16 | pub use unsupported::output; |
| 17 | } |
| 18 | _ => { |
| 19 | mod unix; |
| 20 | use unix as imp; |
| 21 | } |
| 22 | } |
| 23 | |
| 24 | pub use imp::{ExitStatus, ExitStatusError, Process}; |
| 25 | |
| 26 | pub use self::common::{Command, CommandArgs, ExitCode, Stdio}; |
| 27 | pub use crate::ffi::OsString as EnvKey; |
| 28 | |