Skip to content

Commit 90cb622

Browse files
committed
switch from unstable feature to nightly feature
I forgot we had this feature already (and it's already being used for wasi-related things anyways).
1 parent e880718 commit 90cb622

File tree

2 files changed

+6
-7
lines changed

2 files changed

+6
-7
lines changed

Cargo.toml

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

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

src/lib.rs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,3 @@
1-
// wasip2 conditionally gates stdlib APIs.
2-
// https://github.com/rust-lang/rust/issues/130323
3-
#![cfg_attr(
4-
all(target_os = "wasi", target_env = "p2", feature = "unstable"),
5-
feature(wasip2)
6-
)]
71
//! Temporary files and directories.
82
//!
93
//! - Use the [`tempfile()`] function for temporary files
@@ -142,6 +136,12 @@
142136
#![cfg_attr(test, deny(warnings))]
143137
#![deny(rust_2018_idioms)]
144138
#![allow(clippy::redundant_field_names)]
139+
// wasip2 conditionally gates stdlib APIs.
140+
// https://github.com/rust-lang/rust/issues/130323
141+
#![cfg_attr(
142+
all(feature = "nightly", target_os = "wasi", target_env = "p2"),
143+
feature(wasip2)
144+
)]
145145
#![cfg_attr(all(feature = "nightly", target_os = "wasi"), feature(wasi_ext))]
146146

147147
#[cfg(doctest)]

0 commit comments

Comments
 (0)