From 48075c82204cfd72f8326ad5a758de7c32fce5ba Mon Sep 17 00:00:00 2001 From: svartalf Date: Sun, 23 Feb 2020 20:27:34 +0300 Subject: [PATCH] More fixes --- heim-disk/src/os/mod.rs | 12 ++++++++---- heim-memory/src/os/mod.rs | 2 +- 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/heim-disk/src/os/mod.rs b/heim-disk/src/os/mod.rs index d7ea810a..fde05d08 100644 --- a/heim-disk/src/os/mod.rs +++ b/heim-disk/src/os/mod.rs @@ -1,11 +1,15 @@ //! OS-specific extensions. -#[cfg(any(unix, doc))] -#[cfg_attr(docsrs, doc(cfg(unix)))] +// TODO: Make these attributes working +//#[cfg(any(unix, doc))] +//#[cfg_attr(docsrs, doc(cfg(unix)))] +#[cfg(unix)] pub mod unix; -#[cfg(any(target_os = "macos", doc))] -#[cfg_attr(docsrs, doc(cfg(target_os = "macos")))] +// TODO: These too +//#[cfg(any(target_os = "macos", doc))] +//#[cfg_attr(docsrs, doc(cfg(target_os = "macos")))] +#[cfg(target_os = "macos")] pub mod macos; // TODO: Add `cfg(doc)` and make in render in any non-Windows OS diff --git a/heim-memory/src/os/mod.rs b/heim-memory/src/os/mod.rs index b24fdcad..c564697f 100644 --- a/heim-memory/src/os/mod.rs +++ b/heim-memory/src/os/mod.rs @@ -1,6 +1,6 @@ //! OS-specific extensions. -#[cfg(not(windows))] +#[cfg(any(not(target_os = "windows"), doc))] use heim_common::units::Information; #[cfg(any(target_os = "linux", doc))]