From 59c5da6d485a46bee6085a5dd7febe5bf7c9fb17 Mon Sep 17 00:00:00 2001 From: Thomas de Zeeuw Date: Sat, 10 Aug 2024 09:57:15 +0200 Subject: [PATCH] Fix Hermit build The Hermit build would fail if --no-default-features --features os-ext were passed as flags. This is because the cfg_io_source! macro assumed that IoSource was needed for os-ext, which is true for Unix due to the usage of the Unix pipe, but not true for Hermit (it doesn't support Unix pipes). --- src/macros.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/macros.rs b/src/macros.rs index b999e1611..e380c6b14 100644 --- a/src/macros.rs +++ b/src/macros.rs @@ -51,8 +51,8 @@ macro_rules! cfg_net { macro_rules! cfg_io_source { ($($item:item)*) => { $( - #[cfg(any(feature = "net", all(any(unix, target_os = "hermit"), feature = "os-ext")))] - #[cfg_attr(docsrs, doc(cfg(any(feature = "net", all(any(unix, target_os = "hermit"), feature = "os-ext")))))] + #[cfg(any(feature = "net", all(unix, feature = "os-ext")))] + #[cfg_attr(docsrs, doc(cfg(any(feature = "net", all(unix, feature = "os-ext")))))] $item )* }