Rename wasm32-wasi-preview2 to wasm32-wasip2

Signed-off-by: Ryan Levick <me@ryanlevick.com>
This commit is contained in:
Ryan Levick 2024-02-21 09:23:28 -05:00
parent f115064631
commit 5e9bed7b1e
No known key found for this signature in database
22 changed files with 28 additions and 28 deletions

View File

@ -1881,9 +1881,9 @@ symbols! {
vtable_align, vtable_align,
vtable_size, vtable_size,
warn, warn,
wasip2,
wasm_abi, wasm_abi,
wasm_import_module, wasm_import_module,
wasm_preview2,
wasm_target_feature, wasm_target_feature,
while_let, while_let,
windows, windows,

View File

@ -1575,7 +1575,7 @@ supported_targets! {
("wasm32-unknown-emscripten", wasm32_unknown_emscripten), ("wasm32-unknown-emscripten", wasm32_unknown_emscripten),
("wasm32-unknown-unknown", wasm32_unknown_unknown), ("wasm32-unknown-unknown", wasm32_unknown_unknown),
("wasm32-wasi", wasm32_wasi), ("wasm32-wasi", wasm32_wasi),
("wasm32-wasi-preview2", wasm32_wasi_preview2), ("wasm32-wasip2", wasm32_wasip2),
("wasm32-wasi-preview1-threads", wasm32_wasi_preview1_threads), ("wasm32-wasi-preview1-threads", wasm32_wasi_preview1_threads),
("wasm64-unknown-unknown", wasm64_unknown_unknown), ("wasm64-unknown-unknown", wasm64_unknown_unknown),

View File

@ -1,4 +1,4 @@
//! The `wasm32-wasi-preview2` target is the next evolution of the //! The `wasm32-wasip2` target is the next evolution of the
//! wasm32-wasi target. While the wasi specification is still under //! wasm32-wasi target. While the wasi specification is still under
//! active development, the {review 2 iteration is considered an "island //! active development, the {review 2 iteration is considered an "island
//! of stability" that should allow users to rely on it indefinitely. //! of stability" that should allow users to rely on it indefinitely.
@ -24,7 +24,7 @@ pub fn target() -> Target {
let mut options = base::wasm::options(); let mut options = base::wasm::options();
options.os = "wasi".into(); options.os = "wasi".into();
options.env = "preview2".into(); options.env = "p2".into();
options.linker = Some("wasm-component-ld".into()); options.linker = Some("wasm-component-ld".into());
options.pre_link_objects_self_contained = crt_objects::pre_wasi_self_contained(); options.pre_link_objects_self_contained = crt_objects::pre_wasi_self_contained();

View File

@ -85,8 +85,8 @@ pub mod linux;
#[cfg(any(target_os = "wasi", doc))] #[cfg(any(target_os = "wasi", doc))]
pub mod wasi; pub mod wasi;
#[cfg(any(all(target_os = "wasi", target_env = "preview2"), doc))] #[cfg(any(all(target_os = "wasi", target_env = "p2"), doc))]
pub mod wasi_preview2; pub mod wasip2;
// windows // windows
#[cfg(not(all( #[cfg(not(all(

View File

@ -28,8 +28,8 @@
//! [`OsStr`]: crate::ffi::OsStr //! [`OsStr`]: crate::ffi::OsStr
//! [`OsString`]: crate::ffi::OsString //! [`OsString`]: crate::ffi::OsString
#![cfg_attr(not(target_env = "preview2"), stable(feature = "rust1", since = "1.0.0"))] #![cfg_attr(not(target_env = "p2"), stable(feature = "rust1", since = "1.0.0"))]
#![cfg_attr(target_env = "preview2", unstable(feature = "wasm_preview2", issue = "none"))] #![cfg_attr(target_env = "p2", unstable(feature = "wasip2", issue = "none"))]
#![deny(unsafe_op_in_unsafe_fn)] #![deny(unsafe_op_in_unsafe_fn)]
#![doc(cfg(target_os = "wasi"))] #![doc(cfg(target_os = "wasi"))]

View File

@ -40,9 +40,9 @@ cfg_if::cfg_if! {
} else if #[cfg(target_os = "wasi")] { } else if #[cfg(target_os = "wasi")] {
mod wasi; mod wasi;
pub use self::wasi::*; pub use self::wasi::*;
} else if #[cfg(all(target_os = "wasi", target_env = "preview2"))] { } else if #[cfg(all(target_os = "wasi", target_env = "p2"))] {
mod wasi_preview2; mod wasip2;
pub use self::wasi_preview2::*; pub use self::wasip2::*;
} else if #[cfg(target_family = "wasm")] { } else if #[cfg(target_family = "wasm")] {
mod wasm; mod wasm;
pub use self::wasm::*; pub use self::wasm::*;

View File

@ -49,7 +49,7 @@ pub mod time;
cfg_if::cfg_if! { cfg_if::cfg_if! {
if #[cfg(target_feature = "atomics")] { if #[cfg(target_feature = "atomics")] {
compile_error!("The wasm32-wasi-preview2 target does not support atomics"); compile_error!("The wasm32-wasip2 target does not support atomics");
} else { } else {
#[path = "../unsupported/locks/mod.rs"] #[path = "../unsupported/locks/mod.rs"]
pub mod locks; pub mod locks;

@ -1 +1 @@
Subproject commit f4528dd6e85d97bb802240d7cd048b6e1bf72540 Subproject commit 56087ea170d878a7a57b3a5725e0c00f5f5cad70

View File

@ -404,7 +404,7 @@ fn copy_self_contained_objects(
) )
}) })
.join("lib") .join("lib")
.join(target.to_string().replace("-preview1", "").replace("-preview2", "")); .join(target.to_string().replace("-preview1", "").replace("p2", ""));
for &obj in &["libc.a", "crt1-command.o", "crt1-reactor.o"] { for &obj in &["libc.a", "crt1-command.o", "crt1-reactor.o"] {
copy_and_stamp( copy_and_stamp(
builder, builder,

View File

@ -89,7 +89,7 @@ const EXTRA_CHECK_CFGS: &[(Option<Mode>, &str, Option<&[&'static str]>)] = &[
(Some(Mode::Std), "netbsd10", None), (Some(Mode::Std), "netbsd10", None),
(Some(Mode::Std), "backtrace_in_libstd", None), (Some(Mode::Std), "backtrace_in_libstd", None),
/* Extra values not defined in the built-in targets yet, but used in std */ /* Extra values not defined in the built-in targets yet, but used in std */
(Some(Mode::Std), "target_env", Some(&["libnx", "preview2"])), (Some(Mode::Std), "target_env", Some(&["libnx", "p2"])),
// (Some(Mode::Std), "target_os", Some(&[])), // (Some(Mode::Std), "target_os", Some(&[])),
(Some(Mode::Std), "target_arch", Some(&["spirv", "nvptx", "xtensa"])), (Some(Mode::Std), "target_arch", Some(&["spirv", "nvptx", "xtensa"])),
/* Extra names used by dependencies */ /* Extra names used by dependencies */

@ -1 +1 @@
Subproject commit 71352deb20727b4dda9ebfe8182709d5bf17dfea Subproject commit 19c40bfd2d57641d962f3119a1c343355f1b3c5e

@ -1 +1 @@
Subproject commit baafacc6d8701269dab1e1e333f3547fb54b5a59 Subproject commit e1eead1181a691e56299294d5f1d62fe7a26d317

@ -1 +1 @@
Subproject commit a0b119535e7740f68494c4f0582f7ad008b00ccd Subproject commit 3417f866932cb1c09c6be0f31d2a02ee01b4b95d

@ -1 +1 @@
Subproject commit 179256a445d6144f5f371fdefb993f48f33978b0 Subproject commit 57f1e708f5d5850562bc385aaf610e6af14d6ec8

@ -1 +1 @@
Subproject commit ec287e332777627185be4798ad22599ffe7b84aa Subproject commit 7b0ef5b0bea5e3ce3b9764aa5754a60e2cc05c52

View File

@ -60,7 +60,7 @@
- [*-unknown-openbsd](platform-support/openbsd.md) - [*-unknown-openbsd](platform-support/openbsd.md)
- [\*-unknown-uefi](platform-support/unknown-uefi.md) - [\*-unknown-uefi](platform-support/unknown-uefi.md)
- [wasm32-wasi-preview1-threads](platform-support/wasm32-wasi-preview1-threads.md) - [wasm32-wasi-preview1-threads](platform-support/wasm32-wasi-preview1-threads.md)
- [wasm32-wasi-preview2](platform-support/wasm32-wasi-preview2.md) - [wasm32-wasip2](platform-support/wasm32-wasip2.md)
- [wasm64-unknown-unknown](platform-support/wasm64-unknown-unknown.md) - [wasm64-unknown-unknown](platform-support/wasm64-unknown-unknown.md)
- [\*-win7-windows-msvc](platform-support/win7-windows-msvc.md) - [\*-win7-windows-msvc](platform-support/win7-windows-msvc.md)
- [x86_64-fortanix-unknown-sgx](platform-support/x86_64-fortanix-unknown-sgx.md) - [x86_64-fortanix-unknown-sgx](platform-support/x86_64-fortanix-unknown-sgx.md)

View File

@ -361,7 +361,7 @@ target | std | host | notes
`thumbv7a-pc-windows-msvc` | ? | | `thumbv7a-pc-windows-msvc` | ? | |
`thumbv7a-uwp-windows-msvc` | ✓ | | `thumbv7a-uwp-windows-msvc` | ✓ | |
`thumbv7neon-unknown-linux-musleabihf` | ? | | Thumb2-mode ARMv7-A Linux with NEON, MUSL `thumbv7neon-unknown-linux-musleabihf` | ? | | Thumb2-mode ARMv7-A Linux with NEON, MUSL
[`wasm32-wasi-preview2`](platform-support/wasm32-wasi-preview2.md) | ✓ | | WebAssembly [`wasm32-wasip2`](platform-support/wasm32-wasip2.md) | ✓ | | WebAssembly
[`wasm64-unknown-unknown`](platform-support/wasm64-unknown-unknown.md) | ? | | WebAssembly [`wasm64-unknown-unknown`](platform-support/wasm64-unknown-unknown.md) | ? | | WebAssembly
`x86_64-apple-ios-macabi` | ✓ | | Apple Catalyst on x86_64 `x86_64-apple-ios-macabi` | ✓ | | Apple Catalyst on x86_64
[`x86_64-apple-tvos`](platform-support/apple-tvos.md) | ? | | x86 64-bit tvOS [`x86_64-apple-tvos`](platform-support/apple-tvos.md) | ? | | x86 64-bit tvOS

View File

@ -1,9 +1,9 @@
# `wasm32-wasi-preview2` # `wasm32-wasip2`
**Tier: 3** **Tier: 3**
The `wasm32-wasi-preview2` target is a new and still (as of January 2024) an The `wasm32-wasip2` target is a new and still (as of January 2024) an
experimental target. This target is an extension to `wasm32-wasi-preview1` target, experimental target. This target is an extension to `wasm32-wasip1` target,
originally known as `wasm32-wasi`. It is the next evolution in the development of originally known as `wasm32-wasi`. It is the next evolution in the development of
wasi (the [WebAssembly System Interface](https://wasi.dev)) that uses the WebAssembly wasi (the [WebAssembly System Interface](https://wasi.dev)) that uses the WebAssembly
[component model] to allow for a standardized set of syscalls that are intended to empower [component model] to allow for a standardized set of syscalls that are intended to empower

@ -1 +1 @@
Subproject commit 700fbf978e6c5bb297d12963206f7487722de480 Subproject commit 9ea7f739f257b049a65deeb1f2455bb2ea021cfa

@ -1 +1 @@
Subproject commit 7bb7b539558dc88bea44cee4168b6269bf8177b0 Subproject commit 194a60b2952bd5d12ba15dd2577a97eed7d3c587

View File

@ -489,7 +489,7 @@
//@ revisions: wasm32_wasi_preview1_threads //@ revisions: wasm32_wasi_preview1_threads
//@ [wasm32_wasi_preview1_threads] compile-flags: --target wasm32-wasi-preview1-threads //@ [wasm32_wasi_preview1_threads] compile-flags: --target wasm32-wasi-preview1-threads
//@ [wasm32_wasi_preview1_threads] needs-llvm-components: webassembly //@ [wasm32_wasi_preview1_threads] needs-llvm-components: webassembly
//@ revisions: wasm32_wasip1 //@ revisions: wasm32_wasip2
//@ [wasm32_wasip2] compile-flags: --target wasm32-wasip2 //@ [wasm32_wasip2] compile-flags: --target wasm32-wasip2
//@ [wasm32_wasip2] needs-llvm-components: webassembly //@ [wasm32_wasip2] needs-llvm-components: webassembly
//@ revisions: wasm64_unknown_unknown //@ revisions: wasm64_unknown_unknown