Skip to content

Commit d621359

Browse files
authored
fs: make available to wasm under tokio_unstable (#6822)
1 parent 9116999 commit d621359

File tree

2 files changed

+1
-1
lines changed

2 files changed

+1
-1
lines changed

tokio/src/fs/open_options.rs

+1
Original file line numberDiff line numberDiff line change
@@ -394,6 +394,7 @@ impl OpenOptions {
394394
}
395395

396396
/// Returns a mutable reference to the underlying `std::fs::OpenOptions`
397+
#[cfg(any(windows, unix))]
397398
pub(super) fn as_inner_mut(&mut self) -> &mut StdOpenOptions {
398399
&mut self.0
399400
}

tokio/src/macros/cfg.rs

-1
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,6 @@ macro_rules! cfg_fs {
9797
($($item:item)*) => {
9898
$(
9999
#[cfg(feature = "fs")]
100-
#[cfg(not(target_os = "wasi"))]
101100
#[cfg_attr(docsrs, doc(cfg(feature = "fs")))]
102101
$item
103102
)*

0 commit comments

Comments
 (0)