|
13 | 13 | #![stable(feature = "os", since = "1.0.0")]
|
14 | 14 | #![allow(missing_docs, bad_style, missing_debug_implementations)]
|
15 | 15 |
|
16 |
| -#[cfg(any(target_os = "redox", unix))] |
| 16 | +#[cfg(all(not(dox), any(target_os = "redox", unix)))] |
17 | 17 | #[stable(feature = "rust1", since = "1.0.0")]
|
18 | 18 | pub use sys::ext as unix;
|
19 |
| -#[cfg(windows)] |
| 19 | +#[cfg(all(not(dox), windows))] |
20 | 20 | #[stable(feature = "rust1", since = "1.0.0")]
|
21 | 21 | pub use sys::ext as windows;
|
22 | 22 |
|
23 |
| -#[cfg(target_os = "android")] pub mod android; |
24 |
| -#[cfg(target_os = "bitrig")] pub mod bitrig; |
25 |
| -#[cfg(target_os = "dragonfly")] pub mod dragonfly; |
26 |
| -#[cfg(target_os = "freebsd")] pub mod freebsd; |
27 |
| -#[cfg(target_os = "haiku")] pub mod haiku; |
28 |
| -#[cfg(target_os = "ios")] pub mod ios; |
29 |
| -#[cfg(target_os = "linux")] pub mod linux; |
30 |
| -#[cfg(target_os = "macos")] pub mod macos; |
31 |
| -#[cfg(target_os = "nacl")] pub mod nacl; |
32 |
| -#[cfg(target_os = "netbsd")] pub mod netbsd; |
33 |
| -#[cfg(target_os = "openbsd")] pub mod openbsd; |
34 |
| -#[cfg(target_os = "solaris")] pub mod solaris; |
35 |
| -#[cfg(target_os = "emscripten")] pub mod emscripten; |
36 |
| -#[cfg(target_os = "fuchsia")] pub mod fuchsia; |
| 23 | +#[cfg(dox)] |
| 24 | +#[stable(feature = "rust1", since = "1.0.0")] |
| 25 | +pub use sys::unix_ext as unix; |
| 26 | +#[cfg(dox)] |
| 27 | +#[stable(feature = "rust1", since = "1.0.0")] |
| 28 | +pub use sys::windows_ext as windows; |
| 29 | + |
| 30 | +#[cfg(any(dox, target_os = "linux"))] |
| 31 | +#[doc(cfg(target_os = "linux"))] |
| 32 | +pub mod linux; |
| 33 | + |
| 34 | +#[cfg(all(not(dox), target_os = "android"))] pub mod android; |
| 35 | +#[cfg(all(not(dox), target_os = "bitrig"))] pub mod bitrig; |
| 36 | +#[cfg(all(not(dox), target_os = "dragonfly"))] pub mod dragonfly; |
| 37 | +#[cfg(all(not(dox), target_os = "freebsd"))] pub mod freebsd; |
| 38 | +#[cfg(all(not(dox), target_os = "haiku"))] pub mod haiku; |
| 39 | +#[cfg(all(not(dox), target_os = "ios"))] pub mod ios; |
| 40 | +#[cfg(all(not(dox), target_os = "macos"))] pub mod macos; |
| 41 | +#[cfg(all(not(dox), target_os = "nacl"))] pub mod nacl; |
| 42 | +#[cfg(all(not(dox), target_os = "netbsd"))] pub mod netbsd; |
| 43 | +#[cfg(all(not(dox), target_os = "openbsd"))] pub mod openbsd; |
| 44 | +#[cfg(all(not(dox), target_os = "solaris"))] pub mod solaris; |
| 45 | +#[cfg(all(not(dox), target_os = "emscripten"))] pub mod emscripten; |
| 46 | +#[cfg(all(not(dox), target_os = "fuchsia"))] pub mod fuchsia; |
37 | 47 |
|
38 | 48 | pub mod raw;
|
0 commit comments