mirror of
https://github.com/tokio-rs/tokio.git
synced 2026-09-08 00:00:13 +02:00
net: add Apple watchOS support (#6176)
This commit is contained in:
+12
-2
@@ -14,7 +14,12 @@ use std::io;
|
||||
use std::sync::Arc;
|
||||
|
||||
#[cfg_attr(
|
||||
any(target_os = "macos", target_os = "ios", target_os = "tvos"),
|
||||
any(
|
||||
target_os = "macos",
|
||||
target_os = "ios",
|
||||
target_os = "tvos",
|
||||
target_os = "watchos"
|
||||
),
|
||||
allow(unused_assignments)
|
||||
)]
|
||||
#[tokio::test]
|
||||
@@ -44,7 +49,12 @@ async fn send_framed_byte_codec() -> std::io::Result<()> {
|
||||
b_soc = b.into_inner();
|
||||
}
|
||||
|
||||
#[cfg(not(any(target_os = "macos", target_os = "ios", target_os = "tvos")))]
|
||||
#[cfg(not(any(
|
||||
target_os = "macos",
|
||||
target_os = "ios",
|
||||
target_os = "tvos",
|
||||
target_os = "watchos"
|
||||
)))]
|
||||
// test sending & receiving an empty message
|
||||
{
|
||||
let mut a = UdpFramed::new(a_soc, ByteCodec);
|
||||
|
||||
Reference in New Issue
Block a user