summaryrefslogtreecommitdiff
path: root/src/mount/mod.rs
diff options
context:
space:
mode:
authorbors[bot] <26634292+bors[bot]@users.noreply.github.com>2021-12-21 17:52:21 +0000
committerGitHub <noreply@github.com>2021-12-21 17:52:21 +0000
commit1dcc582f8eba50f6233bc0bf398ada4032469c1f (patch)
treebbaea69b57959959e1bfae5792778cede6e3177f /src/mount/mod.rs
parentd1c6fed481638405b0a87e5b7eecf82ce89b2268 (diff)
parent771c710e903c7176eb362fe632fb9fbf0e6f6910 (diff)
downloadnix-1dcc582f8eba50f6233bc0bf398ada4032469c1f.zip
Merge #1611
1611: feature-gate most Nix functions r=rtzoeller a=asomers Using features reduces build time and size for consumer crates. By default all features are enabled. Co-authored-by: Vincent Dagonneau <vincentdagonneau@gmail.com> Co-authored-by: Alan Somers <asomers@gmail.com>
Diffstat (limited to 'src/mount/mod.rs')
-rw-r--r--src/mount/mod.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/mount/mod.rs b/src/mount/mod.rs
index 14bf2a96..e89c1a07 100644
--- a/src/mount/mod.rs
+++ b/src/mount/mod.rs
@@ -1,5 +1,6 @@
//! Mount file systems
#[cfg(any(target_os = "android", target_os = "linux"))]
+#[cfg_attr(docsrs, doc(cfg(all())))]
mod linux;
#[cfg(any(target_os = "android", target_os = "linux"))]
@@ -10,6 +11,7 @@ pub use self::linux::*;
target_os = "macos",
target_os = "netbsd",
target_os = "openbsd"))]
+#[cfg_attr(docsrs, doc(cfg(all())))]
mod bsd;
#[cfg(any(target_os = "dragonfly",