]> git.proxmox.com Git - rustc.git/blobdiff - vendor/libloading/src/os/mod.rs
New upstream version 1.48.0~beta.8+dfsg1
[rustc.git] / vendor / libloading / src / os / mod.rs
index ccbc8e977816e222f18911c5c517e630cce939d7..40361c5f302cd5db2a71f7657185010185697b0c 100644 (file)
 //! 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;