]> git.lizzy.rs Git - rust.git/blob - src/libstd/os/mod.rs
Omit 'missing IndexMut impl' suggestion when IndexMut is implemented.
[rust.git] / src / libstd / os / mod.rs
1 // Copyright 2012-2015 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 //! OS-specific functionality.
12
13 #![stable(feature = "os", since = "1.0.0")]
14 #![allow(missing_docs, bad_style, missing_debug_implementations)]
15
16 cfg_if! {
17     if #[cfg(dox)] {
18
19         // When documenting libstd we want to show unix/windows/linux modules as
20         // these are the "main modules" that are used across platforms. This
21         // should help show platform-specific functionality in a hopefully
22         // cross-platform way in the documentation
23
24         #[stable(feature = "rust1", since = "1.0.0")]
25         pub use sys::unix_ext as unix;
26
27         #[stable(feature = "rust1", since = "1.0.0")]
28         pub use sys::windows_ext as windows;
29
30         #[doc(cfg(target_os = "linux"))]
31         pub mod linux;
32
33     } else {
34
35         // If we're not documenting libstd then we just expose everything as we
36         // otherwise would.
37
38         #[cfg(target_os = "android")]    pub mod android;
39         #[cfg(target_os = "bitrig")]     pub mod bitrig;
40         #[cfg(target_os = "dragonfly")]  pub mod dragonfly;
41         #[cfg(target_os = "freebsd")]    pub mod freebsd;
42         #[cfg(target_os = "haiku")]      pub mod haiku;
43         #[cfg(target_os = "ios")]        pub mod ios;
44         #[cfg(target_os = "macos")]      pub mod macos;
45         #[cfg(target_os = "netbsd")]     pub mod netbsd;
46         #[cfg(target_os = "openbsd")]    pub mod openbsd;
47         #[cfg(target_os = "solaris")]    pub mod solaris;
48         #[cfg(target_os = "emscripten")] pub mod emscripten;
49         #[cfg(target_os = "fuchsia")]    pub mod fuchsia;
50         #[cfg(target_os = "hermit")]     pub mod hermit;
51
52         #[cfg(any(target_os = "redox", unix))]
53         #[stable(feature = "rust1", since = "1.0.0")]
54         pub use sys::ext as unix;
55
56         #[cfg(windows)]
57         #[stable(feature = "rust1", since = "1.0.0")]
58         pub use sys::ext as windows;
59
60         #[cfg(any(target_os = "linux", target_os = "l4re"))]
61         pub mod linux;
62
63     }
64 }
65
66 pub mod raw;