We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fa8ad00 commit 23b9be7Copy full SHA for 23b9be7
Cargo.toml
@@ -23,7 +23,7 @@ fastrand = "2.1.1"
23
once_cell = { version = "1.19.0", default-features = false, features = ["std"] }
24
25
[target.'cfg(any(unix, target_os = "wasi"))'.dependencies]
26
-rustix = { version = "0.38.37", features = ["fs"] }
+rustix = { version = "0.38.39", features = ["fs"] }
27
28
[target.'cfg(windows)'.dependencies.windows-sys]
29
version = ">=0.52,<=0.59"
src/lib.rs
@@ -1,3 +1,6 @@
1
+// wasip2 conditionally gates stdlib APIs.
2
+// https://github.com/rust-lang/rust/issues/130323
3
+#![cfg_attr(all(target_os = "wasi", target_env = "p2"), feature(wasip2))]
4
//! Temporary files and directories.
5
//!
6
//! - Use the [`tempfile()`] function for temporary files
0 commit comments