Skip to content

Commit

Permalink
Add "unstable" feature for wasip2 stdlib
Browse files Browse the repository at this point in the history
Signed-off-by: Colin Murphy <[email protected]>
  • Loading branch information
cdmurph32 committed Nov 6, 2024
1 parent e274913 commit a9649aa
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -37,3 +37,4 @@ doc-comment = "0.3"

[features]
nightly = []
unstable = []
5 changes: 4 additions & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
// wasip2 conditionally gates stdlib APIs.
// https://github.com/rust-lang/rust/issues/130323
#![cfg_attr(all(target_os = "wasi", target_env = "p2"), feature(wasip2))]
#![cfg_attr(
all(target_os = "wasi", target_env = "p2", feature = "unstable"),
feature(wasip2)
)]
//! Temporary files and directories.
//!
//! - Use the [`tempfile()`] function for temporary files
Expand Down

0 comments on commit a9649aa

Please sign in to comment.