about summary refs log tree commit diff
path: root/library/std/src/sys/pal/unix/process/mod.rs
diff options
context:
space:
mode:
authorjoboet <jonasboettiger@icloud.com>2025-02-12 16:26:34 +0100
committerjoboet <jonasboettiger@icloud.com>2025-03-22 12:42:34 +0100
commit89f85cbfa7e508e55f2f05c00356b6d430c55c4e (patch)
tree5bc245e760b7f82273237ae0c5285fc1d09db1a6 /library/std/src/sys/pal/unix/process/mod.rs
parentdb687889a5833381b8b02738a1af93a09a97ba16 (diff)
downloadrust-89f85cbfa7e508e55f2f05c00356b6d430c55c4e.tar.gz
rust-89f85cbfa7e508e55f2f05c00356b6d430c55c4e.zip
std: move process implementations to `sys`
As per #117276, this moves the implementations of `Process` and friends out of the `pal` module and into the `sys` module, removing quite a lot of error-prone `#[path]` imports in the process (hah, get it ;-)). I've also made the `zircon` module a dedicated submodule of `pal::unix`, hopefully we can move some other definitions there as well (they are currently quite a lot of duplications in `sys`). Also, the `ensure_no_nuls` function on Windows now lives in `sys::pal::windows` – it's not specific to processes and shared by the argument implementation.
Diffstat (limited to 'library/std/src/sys/pal/unix/process/mod.rs')
-rw-r--r--library/std/src/sys/pal/unix/process/mod.rs27
1 files changed, 0 insertions, 27 deletions
diff --git a/library/std/src/sys/pal/unix/process/mod.rs b/library/std/src/sys/pal/unix/process/mod.rs
deleted file mode 100644
index 2751d51c44d..00000000000
--- a/library/std/src/sys/pal/unix/process/mod.rs
+++ /dev/null
@@ -1,27 +0,0 @@
-pub use self::process_common::{Command, CommandArgs, ExitCode, Stdio, StdioPipes};
-pub use self::process_inner::{ExitStatus, ExitStatusError, Process};
-pub use crate::ffi::OsString as EnvKey;
-
-#[cfg_attr(any(target_os = "espidf", target_os = "horizon", target_os = "nuttx"), allow(unused))]
-mod process_common;
-
-#[cfg(any(target_os = "espidf", target_os = "horizon", target_os = "vita", target_os = "nuttx"))]
-mod process_unsupported;
-
-cfg_if::cfg_if! {
-    if #[cfg(target_os = "fuchsia")] {
-        #[path = "process_fuchsia.rs"]
-        mod process_inner;
-        mod zircon;
-    } else if #[cfg(target_os = "vxworks")] {
-        #[path = "process_vxworks.rs"]
-        mod process_inner;
-    } else if #[cfg(any(target_os = "espidf", target_os = "horizon", target_os = "vita", target_os = "nuttx"))] {
-        mod process_inner {
-            pub use super::process_unsupported::*;
-        }
-    } else {
-        #[path = "process_unix.rs"]
-        mod process_inner;
-    }
-}