diff --git a/src/poll.rs b/src/poll.rs index d83739818..ee90b9153 100644 --- a/src/poll.rs +++ b/src/poll.rs @@ -3,6 +3,7 @@ not(mio_unsupported_force_poll_poll), not(any( target_os = "espidf", + target_os = "fuchsia", target_os = "haiku", target_os = "hermit", target_os = "nto", @@ -439,6 +440,7 @@ impl Poll { not(mio_unsupported_force_poll_poll), not(any( target_os = "espidf", + target_os = "fuchsia", target_os = "haiku", target_os = "hermit", target_os = "nto", @@ -738,6 +740,7 @@ impl fmt::Debug for Registry { not(any( target_os = "espidf", target_os = "haiku", + target_os = "fuchsia", target_os = "hermit", target_os = "nto", target_os = "solaris", diff --git a/src/sys/unix/mod.rs b/src/sys/unix/mod.rs index 99cbc8e8b..0c44ed02d 100644 --- a/src/sys/unix/mod.rs +++ b/src/sys/unix/mod.rs @@ -36,7 +36,7 @@ cfg_os_poll! { cfg_io_source! { // Both `kqueue` and `epoll` don't need to hold any user space state. - #[cfg(not(any(mio_unsupported_force_poll_poll, target_os = "espidf", target_os = "haiku", target_os = "hermit", target_os = "nto", target_os = "solaris", target_os = "vita")))] + #[cfg(not(any(mio_unsupported_force_poll_poll, target_os = "espidf", target_os = "fuchsia", target_os = "haiku", target_os = "hermit", target_os = "nto", target_os = "solaris", target_os = "vita")))] mod stateless_io_source { use std::io; use std::os::fd::RawFd; @@ -88,10 +88,10 @@ cfg_os_poll! { } } - #[cfg(not(any(mio_unsupported_force_poll_poll, target_os = "espidf", target_os = "haiku", target_os = "hermit", target_os = "nto", target_os = "solaris", target_os = "vita")))] + #[cfg(not(any(mio_unsupported_force_poll_poll, target_os = "espidf", target_os = "fuchsia", target_os = "haiku", target_os = "hermit", target_os = "nto", target_os = "solaris", target_os = "vita")))] pub(crate) use self::stateless_io_source::IoSourceState; - #[cfg(any(mio_unsupported_force_poll_poll, target_os = "espidf", target_os = "haiku", target_os = "hermit", target_os = "nto", target_os = "solaris", target_os = "vita"))] + #[cfg(any(mio_unsupported_force_poll_poll, target_os = "espidf", target_os = "fuchsia", target_os = "haiku", target_os = "hermit", target_os = "nto", target_os = "solaris", target_os = "vita"))] pub(crate) use self::selector::IoSourceState; } diff --git a/src/sys/unix/pipe.rs b/src/sys/unix/pipe.rs index ea7b9947f..a21137763 100644 --- a/src/sys/unix/pipe.rs +++ b/src/sys/unix/pipe.rs @@ -12,6 +12,7 @@ pub(crate) fn new_raw() -> io::Result<[RawFd; 2]> { target_os = "android", target_os = "dragonfly", target_os = "freebsd", + target_os = "fuchsia", target_os = "linux", target_os = "netbsd", target_os = "openbsd", @@ -62,6 +63,7 @@ pub(crate) fn new_raw() -> io::Result<[RawFd; 2]> { target_os = "android", target_os = "dragonfly", target_os = "freebsd", + target_os = "fuchsia", target_os = "haiku", target_os = "illumos", target_os = "ios", diff --git a/src/sys/unix/selector/mod.rs b/src/sys/unix/selector/mod.rs index 8243d38f2..a30af641d 100644 --- a/src/sys/unix/selector/mod.rs +++ b/src/sys/unix/selector/mod.rs @@ -23,6 +23,7 @@ pub(crate) use self::epoll::{event, Event, Events, Selector}; #[cfg(any( mio_unsupported_force_poll_poll, target_os = "espidf", + target_os = "fuchsia", target_os = "haiku", target_os = "hermit", target_os = "nto", @@ -34,6 +35,7 @@ mod poll; #[cfg(any( mio_unsupported_force_poll_poll, target_os = "espidf", + target_os = "fuchsia", target_os = "haiku", target_os = "hermit", target_os = "nto", @@ -46,6 +48,7 @@ cfg_io_source! { #[cfg(any( mio_unsupported_force_poll_poll, target_os = "espidf", + target_os = "fuchsia", target_os = "haiku", target_os = "hermit", target_os = "nto", diff --git a/src/sys/unix/tcp.rs b/src/sys/unix/tcp.rs index be3598cdb..351beb4cb 100644 --- a/src/sys/unix/tcp.rs +++ b/src/sys/unix/tcp.rs @@ -68,6 +68,7 @@ pub(crate) fn accept(listener: &net::TcpListener) -> io::Result<(net::TcpStream, all(not(target_arch="x86"), target_os = "android"), target_os = "dragonfly", target_os = "freebsd", + target_os = "fuchsia", target_os = "illumos", target_os = "linux", target_os = "netbsd", diff --git a/src/sys/unix/waker.rs b/src/sys/unix/waker.rs index c53b6c049..59b0b5096 100644 --- a/src/sys/unix/waker.rs +++ b/src/sys/unix/waker.rs @@ -26,7 +26,7 @@ mod fdbased { #[cfg(all( not(mio_unsupported_force_waker_pipe), - any(target_os = "linux", target_os = "android"), + any(target_os = "android", target_os = "fuchsia", target_os = "linux"), ))] use crate::sys::unix::waker::eventfd::WakerInternal; #[cfg(any( @@ -89,6 +89,7 @@ pub use self::fdbased::Waker; any( target_os = "android", target_os = "espidf", + target_os = "fuchsia", target_os = "hermit", target_os = "linux", ) @@ -145,7 +146,8 @@ mod eventfd { #[cfg(any( mio_unsupported_force_poll_poll, target_os = "espidf", - target_os = "hermit" + target_os = "fuchsia", + target_os = "hermit", ))] pub fn ack_and_reset(&self) { let _ = self.reset(); @@ -177,6 +179,7 @@ mod eventfd { any( mio_unsupported_force_poll_poll, target_os = "espidf", + target_os = "fuchsia", target_os = "hermit", ) ))]