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.
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.
11 //! Platform-specific extensions to `std` for Windows.
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.
19 #![stable(feature = "rust1", since = "1.0.0")]
28 /// A prelude for conveniently writing platform-specific code.
30 /// Includes all extension traits, and some important type definitions.
31 #[stable(feature = "rust1", since = "1.0.0")]
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;