mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-07 17:18:32 +03:00
89f85cbfa7
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.
29 lines
598 B
Rust
29 lines
598 B
Rust
#![allow(unsafe_op_in_unsafe_fn)]
|
|
|
|
/// The PAL (platform abstraction layer) contains platform-specific abstractions
|
|
/// for implementing the features in the other submodules, e.g. UNIX file
|
|
/// descriptors.
|
|
mod pal;
|
|
|
|
mod alloc;
|
|
mod personality;
|
|
|
|
pub mod anonymous_pipe;
|
|
pub mod backtrace;
|
|
pub mod cmath;
|
|
pub mod exit_guard;
|
|
pub mod fs;
|
|
pub mod io;
|
|
pub mod net;
|
|
pub mod os_str;
|
|
pub mod path;
|
|
pub mod process;
|
|
pub mod random;
|
|
pub mod stdio;
|
|
pub mod sync;
|
|
pub mod thread_local;
|
|
|
|
// FIXME(117276): remove this, move feature implementations into individual
|
|
// submodules.
|
|
pub use pal::*;
|