Skip to content

Commit 59ea7db

Browse files
committed
Rename wasm32-wasi-preview2 to wasm32-wasip2
Signed-off-by: Ryan Levick <[email protected]>
1 parent 89c39f2 commit 59ea7db

File tree

6 files changed

+9
-9
lines changed

6 files changed

+9
-9
lines changed

std/src/os/mod.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -85,8 +85,8 @@ pub mod linux;
8585
#[cfg(any(target_os = "wasi", doc))]
8686
pub mod wasi;
8787

88-
#[cfg(any(all(target_os = "wasi", target_env = "preview2"), doc))]
89-
pub mod wasi_preview2;
88+
#[cfg(any(all(target_os = "wasi", target_env = "p2"), doc))]
89+
pub mod wasip2;
9090

9191
// windows
9292
#[cfg(not(all(

std/src/os/wasi/mod.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@
2828
//! [`OsStr`]: crate::ffi::OsStr
2929
//! [`OsString`]: crate::ffi::OsString
3030
31-
#![cfg_attr(not(target_env = "preview2"), stable(feature = "rust1", since = "1.0.0"))]
32-
#![cfg_attr(target_env = "preview2", unstable(feature = "wasm_preview2", issue = "none"))]
31+
#![cfg_attr(not(target_env = "p2"), stable(feature = "rust1", since = "1.0.0"))]
32+
#![cfg_attr(target_env = "p2", unstable(feature = "wasip2", issue = "none"))]
3333
#![deny(unsafe_op_in_unsafe_fn)]
3434
#![doc(cfg(target_os = "wasi"))]
3535

File renamed without changes.

std/src/sys/pal/mod.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -40,9 +40,9 @@ cfg_if::cfg_if! {
4040
} else if #[cfg(target_os = "wasi")] {
4141
mod wasi;
4242
pub use self::wasi::*;
43-
} else if #[cfg(all(target_os = "wasi", target_env = "preview2"))] {
44-
mod wasi_preview2;
45-
pub use self::wasi_preview2::*;
43+
} else if #[cfg(all(target_os = "wasi", target_env = "p2"))] {
44+
mod wasip2;
45+
pub use self::wasip2::*;
4646
} else if #[cfg(target_family = "wasm")] {
4747
mod wasm;
4848
pub use self::wasm::*;

std/src/sys/pal/wasi_preview2/mod.rs renamed to std/src/sys/pal/wasip2/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ pub mod time;
4949

5050
cfg_if::cfg_if! {
5151
if #[cfg(target_feature = "atomics")] {
52-
compile_error!("The wasm32-wasi-preview2 target does not support atomics");
52+
compile_error!("The wasm32-wasip2 target does not support atomics");
5353
} else {
5454
#[path = "../unsupported/locks/mod.rs"]
5555
pub mod locks;

stdarch

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
Subproject commit f4528dd6e85d97bb802240d7cd048b6e1bf72540
1+
Subproject commit 56087ea170d878a7a57b3a5725e0c00f5f5cad70

0 commit comments

Comments
 (0)