diff options
| author | kennytm <kennytm@gmail.com> | 2017-08-05 14:39:46 +0800 |
|---|---|---|
| committer | kennytm <kennytm@gmail.com> | 2017-08-10 13:43:59 +0800 |
| commit | b4114ebe3a19d7d9bdacf700cc67bd2709eafe5b (patch) | |
| tree | ea541608ac8b9307c5860d6dc78afd63a7c47194 /src/libstd/sys/mod.rs | |
| parent | a2b888675accccedec7601cc3bd67ca028b4757c (diff) | |
| download | rust-b4114ebe3a19d7d9bdacf700cc67bd2709eafe5b.tar.gz rust-b4114ebe3a19d7d9bdacf700cc67bd2709eafe5b.zip | |
Exposed all platform-specific documentation.
Diffstat (limited to 'src/libstd/sys/mod.rs')
| -rw-r--r-- | src/libstd/sys/mod.rs | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/src/libstd/sys/mod.rs b/src/libstd/sys/mod.rs index ef4dc365dbe..d91c2073a23 100644 --- a/src/libstd/sys/mod.rs +++ b/src/libstd/sys/mod.rs @@ -45,3 +45,33 @@ mod imp; #[cfg(target_os = "redox")] #[path = "redox/mod.rs"] mod imp; + + +// Import essential modules from both platforms when documenting. + +#[cfg(all(dox, not(unix)))] +use os::linux as platform; + +#[cfg(all(dox, not(any(unix, target_os = "redox"))))] +#[path = "unix/ext/mod.rs"] +pub mod unix_ext; + +#[cfg(all(dox, any(unix, target_os = "redox")))] +pub use self::ext as unix_ext; + + +#[cfg(all(dox, not(windows)))] +#[macro_use] +#[path = "windows/compat.rs"] +mod compat; + +#[cfg(all(dox, not(windows)))] +#[path = "windows/c.rs"] +mod c; + +#[cfg(all(dox, not(windows)))] +#[path = "windows/ext/mod.rs"] +pub mod windows_ext; + +#[cfg(all(dox, windows))] +pub use self::ext as windows_ext; |
