File tree Expand file tree Collapse file tree 6 files changed +9
-9
lines changed Expand file tree Collapse file tree 6 files changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -85,8 +85,8 @@ pub mod linux;
8585#[ cfg( any( target_os = "wasi" , doc) ) ]
8686pub 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(
Original file line number Diff line number Diff line change 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.
Original file line number Diff line number Diff 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:: * ;
Original file line number Diff line number Diff line change @@ -49,7 +49,7 @@ pub mod time;
4949
5050cfg_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;
Original file line number Diff line number Diff line change 1- Subproject commit f4528dd6e85d97bb802240d7cd048b6e1bf72540
1+ Subproject commit 56087ea170d878a7a57b3a5725e0c00f5f5cad70
You can’t perform that action at this time.
0 commit comments