mirror of
https://github.com/tokio-rs/tokio.git
synced 2025-09-25 12:00:35 +00:00
net: add Apple visionOS support (#6465)
This commit is contained in:
parent
035a968bdd
commit
01ed7b55f7
@ -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
|
||||
{
|
||||
|
@ -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};
|
||||
|
Loading…
x
Reference in New Issue
Block a user