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.
This commit is contained in:
Thomas Zander
2026-08-07 17:42:19 +02:00
committed by GitHub
parent 4f7b8d6239
commit ecd621dd2c
+6 -4
View File
@@ -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;