Skip to content

Commit

Permalink
fix: enable wasip2 feature for wasm32-wasip2 target
Browse files Browse the repository at this point in the history
  • Loading branch information
cdmurph32 committed Nov 5, 2024
1 parent fa8ad00 commit 23b9be7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ fastrand = "2.1.1"
once_cell = { version = "1.19.0", default-features = false, features = ["std"] }

[target.'cfg(any(unix, target_os = "wasi"))'.dependencies]
rustix = { version = "0.38.37", features = ["fs"] }
rustix = { version = "0.38.39", features = ["fs"] }

[target.'cfg(windows)'.dependencies.windows-sys]
version = ">=0.52,<=0.59"
Expand Down
3 changes: 3 additions & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// wasip2 conditionally gates stdlib APIs.
// https://github.com/rust-lang/rust/issues/130323
#![cfg_attr(all(target_os = "wasi", target_env = "p2"), feature(wasip2))]
//! Temporary files and directories.
//!
//! - Use the [`tempfile()`] function for temporary files
Expand Down

0 comments on commit 23b9be7

Please sign in to comment.