Skip to content

Commit a9649aa

Browse files
committed
Add "unstable" feature for wasip2 stdlib
Signed-off-by: Colin Murphy <[email protected]>
1 parent e274913 commit a9649aa

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,3 +37,4 @@ doc-comment = "0.3"
3737

3838
[features]
3939
nightly = []
40+
unstable = []

src/lib.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
// wasip2 conditionally gates stdlib APIs.
22
// https://github.com/rust-lang/rust/issues/130323
3-
#![cfg_attr(all(target_os = "wasi", target_env = "p2"), feature(wasip2))]
3+
#![cfg_attr(
4+
all(target_os = "wasi", target_env = "p2", feature = "unstable"),
5+
feature(wasip2)
6+
)]
47
//! Temporary files and directories.
58
//!
69
//! - Use the [`tempfile()`] function for temporary files

0 commit comments

Comments
 (0)