From 01ed7b55f753b104ec03627e1b6238287cc09c4f Mon Sep 17 00:00:00 2001 From: Quentin Perez Date: Sat, 6 Apr 2024 18:09:43 +0200 Subject: [PATCH] net: add Apple visionOS support (#6465) --- tokio-util/tests/udp.rs | 6 ++++-- tokio/src/net/unix/ucred.rs | 6 ++++-- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/tokio-util/tests/udp.rs b/tokio-util/tests/udp.rs index eb95a3d18ec..8a70289c263 100644 --- a/tokio-util/tests/udp.rs +++ b/tokio-util/tests/udp.rs @@ -18,7 +18,8 @@ use std::sync::Arc; target_os = "macos", target_os = "ios", target_os = "tvos", - target_os = "watchos" + target_os = "watchos", + target_os = "visionos" ), allow(unused_assignments) )] @@ -53,7 +54,8 @@ async fn send_framed_byte_codec() -> std::io::Result<()> { target_os = "macos", target_os = "ios", target_os = "tvos", - target_os = "watchos" + target_os = "watchos", + target_os = "visionos" )))] // test sending & receiving an empty message { diff --git a/tokio/src/net/unix/ucred.rs b/tokio/src/net/unix/ucred.rs index cb0ee51947f..3390819160a 100644 --- a/tokio/src/net/unix/ucred.rs +++ b/tokio/src/net/unix/ucred.rs @@ -49,7 +49,8 @@ pub(crate) use self::impl_bsd::get_peer_cred; target_os = "macos", target_os = "ios", target_os = "tvos", - target_os = "watchos" + target_os = "watchos", + target_os = "visionos" ))] pub(crate) use self::impl_macos::get_peer_cred; @@ -196,7 +197,8 @@ pub(crate) mod impl_bsd { target_os = "macos", target_os = "ios", target_os = "tvos", - target_os = "watchos" + target_os = "watchos", + target_os = "visionos" ))] pub(crate) mod impl_macos { use crate::net::unix::{self, UnixStream};