Add doc(cfg(...))

This commit is contained in:
LinkTed 2020-08-29 19:22:03 +02:00
parent 1869141e54
commit 46764d48bb
2 changed files with 24 additions and 0 deletions

View File

@ -159,6 +159,7 @@ impl<'a, T> Iterator for AncillaryDataIter<'a, T> {
}
#[cfg(any(
doc,
target_os = "android",
target_os = "dragonfly",
target_os = "emscripten",
@ -176,6 +177,7 @@ impl<'a, T> Iterator for AncillaryDataIter<'a, T> {
pub struct UCred(libc::ucred);
#[cfg(any(
doc,
target_os = "android",
target_os = "dragonfly",
target_os = "emscripten",
@ -238,6 +240,7 @@ impl<'a> Iterator for ScmRights<'a> {
}
#[cfg(any(
doc,
target_os = "android",
target_os = "dragonfly",
target_os = "emscripten",
@ -254,6 +257,7 @@ impl<'a> Iterator for ScmRights<'a> {
pub struct ScmCredentials<'a>(AncillaryDataIter<'a, libc::ucred>);
#[cfg(any(
doc,
target_os = "android",
target_os = "dragonfly",
target_os = "emscripten",
@ -286,6 +290,7 @@ pub enum AncillaryError {
pub enum AncillaryData<'a> {
ScmRights(ScmRights<'a>),
#[cfg(any(
doc,
target_os = "android",
target_os = "dragonfly",
target_os = "emscripten",
@ -309,6 +314,7 @@ impl<'a> AncillaryData<'a> {
}
#[cfg(any(
doc,
target_os = "android",
target_os = "dragonfly",
target_os = "emscripten",
@ -549,6 +555,7 @@ impl<'a> SocketAncillary<'a> {
/// and type `SCM_CREDENTIALS`.
///
#[cfg(any(
doc,
target_os = "android",
target_os = "dragonfly",
target_os = "emscripten",

View File

@ -3,7 +3,24 @@
#![stable(feature = "unix_socket", since = "1.10.0")]
mod addr;
#[doc(cfg(any(
target_os = "android",
target_os = "dragonfly",
target_os = "emscripten",
target_os = "freebsd",
target_os = "fuchsia",
target_os = "haiku",
target_os = "illumos",
target_os = "ios",
target_os = "linux",
target_os = "macos",
target_os = "netbsd",
target_os = "openbsd",
target_os = "solaris",
target_env = "uclibc",
)))]
#[cfg(any(
doc,
target_os = "android",
target_os = "dragonfly",
target_os = "emscripten",