From d6213594ca3767f182e8981fde7a119575e94c65 Mon Sep 17 00:00:00 2001 From: Nam Se Hyun <3580430+namse@users.noreply.github.com> Date: Wed, 11 Sep 2024 21:55:07 +0900 Subject: [PATCH] fs: make available to wasm under tokio_unstable (#6822) --- tokio/src/fs/open_options.rs | 1 + tokio/src/macros/cfg.rs | 1 - 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/tokio/src/fs/open_options.rs b/tokio/src/fs/open_options.rs index 126153938..e70e6aa0b 100644 --- a/tokio/src/fs/open_options.rs +++ b/tokio/src/fs/open_options.rs @@ -394,6 +394,7 @@ impl OpenOptions { } /// Returns a mutable reference to the underlying `std::fs::OpenOptions` + #[cfg(any(windows, unix))] pub(super) fn as_inner_mut(&mut self) -> &mut StdOpenOptions { &mut self.0 } diff --git a/tokio/src/macros/cfg.rs b/tokio/src/macros/cfg.rs index 8a72476f7..3242d3ce2 100644 --- a/tokio/src/macros/cfg.rs +++ b/tokio/src/macros/cfg.rs @@ -97,7 +97,6 @@ macro_rules! cfg_fs { ($($item:item)*) => { $( #[cfg(feature = "fs")] - #[cfg(not(target_os = "wasi"))] #[cfg_attr(docsrs, doc(cfg(feature = "fs")))] $item )*