Skip to content

Commit

Permalink
net: add Apple visionOS support (#6465)
Browse files Browse the repository at this point in the history
  • Loading branch information
QuentinPerez authored Apr 6, 2024
1 parent 035a968 commit 01ed7b5
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
6 changes: 4 additions & 2 deletions tokio-util/tests/udp.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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)
)]
Expand Down Expand Up @@ -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
{
Expand Down
6 changes: 4 additions & 2 deletions tokio/src/net/unix/ucred.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down Expand Up @@ -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};
Expand Down

0 comments on commit 01ed7b5

Please sign in to comment.