//! use libloading::os::windows::*;
//! ```
-macro_rules! unix {
- ($item: item) => {
- /// UNIX implementation of dynamic library loading.
- ///
- /// This module should be expanded with more UNIX-specific functionality in the future.
- $item
- }
-}
+/// UNIX implementation of dynamic library loading.
+#[cfg(any(unix, docsrs))]
+#[cfg_attr(docsrs, doc(cfg(unix)))]
+pub mod unix;
-macro_rules! windows {
- ($item: item) => {
- /// Windows implementation of dynamic library loading.
- ///
- /// This module should be expanded with more Windows-specific functionality in the future.
- $item
- }
-}
-
-#[cfg(unix)]
-unix!(pub mod unix;);
-#[cfg(unix)]
-windows!(pub mod windows {});
-
-#[cfg(windows)]
-windows!(pub mod windows;);
-#[cfg(windows)]
-unix!(pub mod unix {});
+/// Windows implementation of dynamic library loading.
+#[cfg(any(windows, docsrs))]
+#[cfg_attr(docsrs, doc(cfg(windows)))]
+pub mod windows;