]> git.proxmox.com Git - rustc.git/blob - src/libstd/sys/windows/ext/mod.rs
New upstream version 1.41.1+dfsg1
[rustc.git] / src / libstd / sys / windows / ext / mod.rs
1 //! Platform-specific extensions to `std` for Windows.
2 //!
3 //! Provides access to platform-level information for Windows, and exposes
4 //! Windows-specific idioms that would otherwise be inappropriate as part
5 //! the core `std` library. These extensions allow developers to use
6 //! `std` types and idioms with Windows in a way that the normal
7 //! platform-agnostic idioms would not normally support.
8
9 #![stable(feature = "rust1", since = "1.0.0")]
10 #![doc(cfg(windows))]
11 #![allow(missing_docs)]
12
13 pub mod ffi;
14 pub mod fs;
15 pub mod io;
16 pub mod process;
17 pub mod raw;
18 pub mod thread;
19
20 /// A prelude for conveniently writing platform-specific code.
21 ///
22 /// Includes all extension traits, and some important type definitions.
23 #[stable(feature = "rust1", since = "1.0.0")]
24 pub mod prelude {
25 #[doc(no_inline)]
26 #[stable(feature = "rust1", since = "1.0.0")]
27 pub use super::ffi::{OsStrExt, OsStringExt};
28 #[doc(no_inline)]
29 #[stable(feature = "file_offset", since = "1.15.0")]
30 pub use super::fs::FileExt;
31 #[doc(no_inline)]
32 #[stable(feature = "rust1", since = "1.0.0")]
33 pub use super::fs::{MetadataExt, OpenOptionsExt};
34 #[doc(no_inline)]
35 #[stable(feature = "rust1", since = "1.0.0")]
36 pub use super::io::{AsRawHandle, AsRawSocket, RawHandle, RawSocket};
37 #[doc(no_inline)]
38 #[stable(feature = "rust1", since = "1.0.0")]
39 pub use super::io::{FromRawHandle, FromRawSocket, IntoRawHandle, IntoRawSocket};
40 }