From ecd621dd2c1a5205a84f579225e1454b62af211c Mon Sep 17 00:00:00 2001 From: Thomas Zander Date: Fri, 7 Aug 2026 17:42:19 +0200 Subject: [PATCH] net: support ucred.rs on Fuchsia (#8257) In order to compile successfully with the net feature on Fuchsia, a cfg attribute for Fuchsia in `impl_noproc` is required. --- tokio/src/net/unix/ucred.rs | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/tokio/src/net/unix/ucred.rs b/tokio/src/net/unix/ucred.rs index 3be73eee4..5a3c8f98c 100644 --- a/tokio/src/net/unix/ucred.rs +++ b/tokio/src/net/unix/ucred.rs @@ -69,9 +69,10 @@ pub(crate) use self::impl_aix::get_peer_cred; #[cfg(any( target_os = "espidf", + target_os = "fuchsia", + target_os = "hurd", target_os = "nuttx", - target_os = "vita", - target_os = "hurd" + target_os = "vita" ))] pub(crate) use self::impl_noproc::get_peer_cred; @@ -400,9 +401,10 @@ pub(crate) mod impl_aix { #[cfg(any( target_os = "espidf", + target_os = "fuchsia", + target_os = "hurd", target_os = "nuttx", - target_os = "vita", - target_os = "hurd" + target_os = "vita" ))] pub(crate) mod impl_noproc { use crate::net::unix::UnixStream;