diff options
| author | Christiaan Dirkx <christiaan@dirkx.email> | 2021-03-04 15:15:26 +0100 |
|---|---|---|
| committer | Christiaan Dirkx <christiaan@dirkx.email> | 2021-05-03 16:56:20 +0200 |
| commit | ffc20e48de64f73ea57b6b7c121e2b50de30097f (patch) | |
| tree | 940d3816f1f7c9605615d5ab47313ef748a1411a /library/std/src/os/windows/mod.rs | |
| parent | 7024bfffbdd1fb3dafa3f263f6d10fd2aed2ff2d (diff) | |
| download | rust-ffc20e48de64f73ea57b6b7c121e2b50de30097f.tar.gz rust-ffc20e48de64f73ea57b6b7c121e2b50de30097f.zip | |
Move `std::sys::windows::ext` to `std::os::windows`
Diffstat (limited to 'library/std/src/os/windows/mod.rs')
| -rw-r--r-- | library/std/src/os/windows/mod.rs | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/library/std/src/os/windows/mod.rs b/library/std/src/os/windows/mod.rs new file mode 100644 index 00000000000..52ac508f9f7 --- /dev/null +++ b/library/std/src/os/windows/mod.rs @@ -0,0 +1,39 @@ +//! Platform-specific extensions to `std` for Windows. +//! +//! Provides access to platform-level information for Windows, and exposes +//! Windows-specific idioms that would otherwise be inappropriate as part +//! the core `std` library. These extensions allow developers to use +//! `std` types and idioms with Windows in a way that the normal +//! platform-agnostic idioms would not normally support. + +#![stable(feature = "rust1", since = "1.0.0")] +#![doc(cfg(windows))] + +pub mod ffi; +pub mod fs; +pub mod io; +pub mod process; +pub mod raw; +pub mod thread; + +/// A prelude for conveniently writing platform-specific code. +/// +/// Includes all extension traits, and some important type definitions. +#[stable(feature = "rust1", since = "1.0.0")] +pub mod prelude { + #[doc(no_inline)] + #[stable(feature = "rust1", since = "1.0.0")] + pub use super::ffi::{OsStrExt, OsStringExt}; + #[doc(no_inline)] + #[stable(feature = "file_offset", since = "1.15.0")] + pub use super::fs::FileExt; + #[doc(no_inline)] + #[stable(feature = "rust1", since = "1.0.0")] + pub use super::fs::{MetadataExt, OpenOptionsExt}; + #[doc(no_inline)] + #[stable(feature = "rust1", since = "1.0.0")] + pub use super::io::{AsRawHandle, AsRawSocket, RawHandle, RawSocket}; + #[doc(no_inline)] + #[stable(feature = "rust1", since = "1.0.0")] + pub use super::io::{FromRawHandle, FromRawSocket, IntoRawHandle, IntoRawSocket}; +} |
