net: add Apple visionOS support (#6465)

This commit is contained in:
Quentin Perez 2024-04-06 18:09:43 +02:00 committed by GitHub
parent 035a968bdd
commit 01ed7b55f7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 8 additions and 4 deletions

View File

@ -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
{

View File

@ -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};