about summary refs log tree commit diff
path: root/library/std/src/os/unix/net/mod.rs
diff options
context:
space:
mode:
authorKalle Wachsmuth <kalle.wachsmuth@gmail.com>2024-03-07 16:01:48 +0100
committerKalle Wachsmuth <kalle.wachsmuth@gmail.com>2024-03-07 16:23:35 +0100
commit5ce3db22487d2d88f035a939abe1131aedbd9d94 (patch)
tree4be0b387384ec78dcc468c3a38e04dd5de696cad /library/std/src/os/unix/net/mod.rs
parent8c9a75b3238b66592779d6b240dbf78eacefebb8 (diff)
downloadrust-5ce3db22487d2d88f035a939abe1131aedbd9d94.tar.gz
rust-5ce3db22487d2d88f035a939abe1131aedbd9d94.zip
make `std::os::unix::ucred` module private
Diffstat (limited to 'library/std/src/os/unix/net/mod.rs')
-rw-r--r--library/std/src/os/unix/net/mod.rs29
1 files changed, 29 insertions, 0 deletions
diff --git a/library/std/src/os/unix/net/mod.rs b/library/std/src/os/unix/net/mod.rs
index 6da3e350bf1..28c1188677b 100644
--- a/library/std/src/os/unix/net/mod.rs
+++ b/library/std/src/os/unix/net/mod.rs
@@ -12,6 +12,20 @@ mod listener;
 mod stream;
 #[cfg(all(test, not(target_os = "emscripten")))]
 mod tests;
+#[cfg(any(
+    target_os = "android",
+    target_os = "linux",
+    target_os = "dragonfly",
+    target_os = "freebsd",
+    target_os = "ios",
+    target_os = "tvos",
+    target_os = "watchos",
+    target_os = "macos",
+    target_os = "netbsd",
+    target_os = "openbsd",
+    target_os = "nto",
+))]
+mod ucred;
 
 #[stable(feature = "unix_socket", since = "1.10.0")]
 pub use self::addr::*;
@@ -24,3 +38,18 @@ pub use self::datagram::*;
 pub use self::listener::*;
 #[stable(feature = "unix_socket", since = "1.10.0")]
 pub use self::stream::*;
+#[cfg(any(
+    target_os = "android",
+    target_os = "linux",
+    target_os = "dragonfly",
+    target_os = "freebsd",
+    target_os = "ios",
+    target_os = "tvos",
+    target_os = "watchos",
+    target_os = "macos",
+    target_os = "netbsd",
+    target_os = "openbsd",
+    target_os = "nto",
+))]
+#[unstable(feature = "peer_credentials_unix_socket", issue = "42839", reason = "unstable")]
+pub use self::ucred::*;