File tree 6 files changed +9
-9
lines changed
6 files changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -85,8 +85,8 @@ pub mod linux;
85
85
#[ cfg( any( target_os = "wasi" , doc) ) ]
86
86
pub mod wasi;
87
87
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 ;
90
90
91
91
// windows
92
92
#[ cfg( not( all(
Original file line number Diff line number Diff line change 28
28
//! [`OsStr`]: crate::ffi::OsStr
29
29
//! [`OsString`]: crate::ffi::OsString
30
30
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" ) ) ]
33
33
#![ deny( unsafe_op_in_unsafe_fn) ]
34
34
#![ doc( cfg( target_os = "wasi" ) ) ]
35
35
File renamed without changes.
Original file line number Diff line number Diff line change @@ -40,9 +40,9 @@ cfg_if::cfg_if! {
40
40
} else if #[ cfg( target_os = "wasi" ) ] {
41
41
mod wasi;
42
42
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 :: * ;
46
46
} else if #[ cfg( target_family = "wasm" ) ] {
47
47
mod wasm;
48
48
pub use self :: wasm:: * ;
Original file line number Diff line number Diff line change @@ -49,7 +49,7 @@ pub mod time;
49
49
50
50
cfg_if:: cfg_if! {
51
51
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" ) ;
53
53
} else {
54
54
#[ path = "../unsupported/locks/mod.rs" ]
55
55
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