]> git.lizzy.rs Git - rust.git/blob - src/libstd/sys/windows/ext/mod.rs
Rollup merge of #42037 - nagisa:charpat, r=sfackler
[rust.git] / src / libstd / sys / windows / ext / mod.rs
1 // Copyright 2014 The Rust Project Developers. See the COPYRIGHT
2 // file at the top-level directory of this distribution and at
3 // http://rust-lang.org/COPYRIGHT.
4 //
5 // Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
6 // http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
7 // <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
8 // option. This file may not be copied, modified, or distributed
9 // except according to those terms.
10
11 //! Platform-specific extensions to `std` for Windows.
12 //!
13 //! Provides access to platform-level information for Windows, and exposes
14 //! Windows-specific idioms that would otherwise be inappropriate as part
15 //! the core `std` library. These extensions allow developers to use
16 //! `std` types and idioms with Windows in a way that the normal
17 //! platform-agnostic idioms would not normally support.
18
19 #![stable(feature = "rust1", since = "1.0.0")]
20
21 pub mod ffi;
22 pub mod fs;
23 pub mod io;
24 pub mod raw;
25 pub mod process;
26 pub mod thread;
27
28 /// A prelude for conveniently writing platform-specific code.
29 ///
30 /// Includes all extension traits, and some important type definitions.
31 #[stable(feature = "rust1", since = "1.0.0")]
32 pub mod prelude {
33     #[doc(no_inline)] #[stable(feature = "rust1", since = "1.0.0")]
34     pub use super::io::{RawSocket, RawHandle, AsRawSocket, AsRawHandle};
35     #[doc(no_inline)] #[stable(feature = "rust1", since = "1.0.0")]
36     pub use super::io::{FromRawSocket, FromRawHandle, IntoRawSocket, IntoRawHandle};
37     #[doc(no_inline)] #[stable(feature = "rust1", since = "1.0.0")]
38     pub use super::ffi::{OsStrExt, OsStringExt};
39     #[doc(no_inline)] #[stable(feature = "rust1", since = "1.0.0")]
40     pub use super::fs::{OpenOptionsExt, MetadataExt};
41     #[doc(no_inline)] #[stable(feature = "file_offset", since = "1.15.0")]
42     pub use super::fs::FileExt;
43 }