Add doc(cfg(...))
This commit is contained in:
parent
1869141e54
commit
46764d48bb
2 changed files with 24 additions and 0 deletions
|
@ -159,6 +159,7 @@ impl<'a, T> Iterator for AncillaryDataIter<'a, T> {
|
||||||
}
|
}
|
||||||
|
|
||||||
#[cfg(any(
|
#[cfg(any(
|
||||||
|
doc,
|
||||||
target_os = "android",
|
target_os = "android",
|
||||||
target_os = "dragonfly",
|
target_os = "dragonfly",
|
||||||
target_os = "emscripten",
|
target_os = "emscripten",
|
||||||
|
@ -176,6 +177,7 @@ impl<'a, T> Iterator for AncillaryDataIter<'a, T> {
|
||||||
pub struct UCred(libc::ucred);
|
pub struct UCred(libc::ucred);
|
||||||
|
|
||||||
#[cfg(any(
|
#[cfg(any(
|
||||||
|
doc,
|
||||||
target_os = "android",
|
target_os = "android",
|
||||||
target_os = "dragonfly",
|
target_os = "dragonfly",
|
||||||
target_os = "emscripten",
|
target_os = "emscripten",
|
||||||
|
@ -238,6 +240,7 @@ impl<'a> Iterator for ScmRights<'a> {
|
||||||
}
|
}
|
||||||
|
|
||||||
#[cfg(any(
|
#[cfg(any(
|
||||||
|
doc,
|
||||||
target_os = "android",
|
target_os = "android",
|
||||||
target_os = "dragonfly",
|
target_os = "dragonfly",
|
||||||
target_os = "emscripten",
|
target_os = "emscripten",
|
||||||
|
@ -254,6 +257,7 @@ impl<'a> Iterator for ScmRights<'a> {
|
||||||
pub struct ScmCredentials<'a>(AncillaryDataIter<'a, libc::ucred>);
|
pub struct ScmCredentials<'a>(AncillaryDataIter<'a, libc::ucred>);
|
||||||
|
|
||||||
#[cfg(any(
|
#[cfg(any(
|
||||||
|
doc,
|
||||||
target_os = "android",
|
target_os = "android",
|
||||||
target_os = "dragonfly",
|
target_os = "dragonfly",
|
||||||
target_os = "emscripten",
|
target_os = "emscripten",
|
||||||
|
@ -286,6 +290,7 @@ pub enum AncillaryError {
|
||||||
pub enum AncillaryData<'a> {
|
pub enum AncillaryData<'a> {
|
||||||
ScmRights(ScmRights<'a>),
|
ScmRights(ScmRights<'a>),
|
||||||
#[cfg(any(
|
#[cfg(any(
|
||||||
|
doc,
|
||||||
target_os = "android",
|
target_os = "android",
|
||||||
target_os = "dragonfly",
|
target_os = "dragonfly",
|
||||||
target_os = "emscripten",
|
target_os = "emscripten",
|
||||||
|
@ -309,6 +314,7 @@ impl<'a> AncillaryData<'a> {
|
||||||
}
|
}
|
||||||
|
|
||||||
#[cfg(any(
|
#[cfg(any(
|
||||||
|
doc,
|
||||||
target_os = "android",
|
target_os = "android",
|
||||||
target_os = "dragonfly",
|
target_os = "dragonfly",
|
||||||
target_os = "emscripten",
|
target_os = "emscripten",
|
||||||
|
@ -549,6 +555,7 @@ impl<'a> SocketAncillary<'a> {
|
||||||
/// and type `SCM_CREDENTIALS`.
|
/// and type `SCM_CREDENTIALS`.
|
||||||
///
|
///
|
||||||
#[cfg(any(
|
#[cfg(any(
|
||||||
|
doc,
|
||||||
target_os = "android",
|
target_os = "android",
|
||||||
target_os = "dragonfly",
|
target_os = "dragonfly",
|
||||||
target_os = "emscripten",
|
target_os = "emscripten",
|
||||||
|
|
|
@ -3,7 +3,24 @@
|
||||||
#![stable(feature = "unix_socket", since = "1.10.0")]
|
#![stable(feature = "unix_socket", since = "1.10.0")]
|
||||||
|
|
||||||
mod addr;
|
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(
|
#[cfg(any(
|
||||||
|
doc,
|
||||||
target_os = "android",
|
target_os = "android",
|
||||||
target_os = "dragonfly",
|
target_os = "dragonfly",
|
||||||
target_os = "emscripten",
|
target_os = "emscripten",
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue