46
46
//! enabled `wasm-bindgen` will be used. If neither feature is enabled,
47
47
//! `getrandom` will always fail.
48
48
//!
49
- //! The WASI target `wasm32-unknown- wasi` uses the `__wasi_random_get`
50
- //! function defined by the WASI standard.
49
+ //! The WASI target `wasm32-wasi` uses the `__wasi_random_get` function defined
50
+ //! by the WASI standard.
51
51
//!
52
52
//!
53
53
//! ## Early boot
@@ -143,7 +143,7 @@ extern crate std;
143
143
target_os = "linux" ,
144
144
all(
145
145
target_arch = "wasm32" ,
146
- not( target_env = "wasi" )
146
+ not( target_os = "wasi" )
147
147
) ,
148
148
) ) ]
149
149
mod utils;
@@ -190,13 +190,13 @@ mod_use!(cfg(target_os = "redox"), use_file);
190
190
mod_use ! ( cfg( target_os = "solaris" ) , solaris_illumos) ;
191
191
mod_use ! ( cfg( windows) , windows) ;
192
192
mod_use ! ( cfg( target_env = "sgx" ) , sgx) ;
193
- mod_use ! ( cfg( target_env = "wasi" ) , wasi) ;
193
+ mod_use ! ( cfg( target_os = "wasi" ) , wasi) ;
194
194
195
195
mod_use ! (
196
196
cfg( all(
197
197
target_arch = "wasm32" ,
198
198
not( target_os = "emscripten" ) ,
199
- not( target_env = "wasi" ) ,
199
+ not( target_os = "wasi" ) ,
200
200
feature = "wasm-bindgen"
201
201
) ) ,
202
202
wasm32_bindgen
@@ -206,7 +206,7 @@ mod_use!(
206
206
cfg( all(
207
207
target_arch = "wasm32" ,
208
208
not( target_os = "emscripten" ) ,
209
- not( target_env = "wasi" ) ,
209
+ not( target_os = "wasi" ) ,
210
210
not( feature = "wasm-bindgen" ) ,
211
211
feature = "stdweb" ,
212
212
) ) ,
@@ -237,7 +237,7 @@ mod_use!(
237
237
target_arch = "wasm32" ,
238
238
any(
239
239
target_os = "emscripten" ,
240
- target_env = "wasi" ,
240
+ target_os = "wasi" ,
241
241
feature = "wasm-bindgen" ,
242
242
feature = "stdweb" ,
243
243
) ,
0 commit comments