File tree 2 files changed +3
-23
lines changed
2 files changed +3
-23
lines changed Original file line number Diff line number Diff line change @@ -22,22 +22,15 @@ cfg-if = "0.1"
22
22
compiler_builtins = { version = " 0.1" , optional = true }
23
23
core = { version = " 1.0" , optional = true , package = " rustc-std-workspace-core" }
24
24
25
- [target .'cfg(any( unix, target_os = "redox") )' .dependencies ]
25
+ [target .'cfg(unix)' .dependencies ]
26
26
libc = { version = " 0.2.62" , default-features = false }
27
27
28
28
[target .'cfg(target_os = "wasi")' .dependencies ]
29
29
wasi = " 0.7"
30
30
31
- [target .wasm32-unknown-unknown .dependencies ]
32
- wasm-bindgen = { version = " 0.2.29" , optional = true }
33
- stdweb = { version = " 0.4.18" , optional = true }
34
-
35
- [target .wasm32-unknown-unknown .dev-dependencies ]
36
- wasm-bindgen-test = " 0.2"
37
-
38
31
[features ]
39
32
std = []
33
+ # Feature to enable custom RNG implementations
34
+ custom = []
40
35
# Unstable feature to support being a libstd dependency
41
36
rustc-dep-of-std = [" compiler_builtins" , " core" ]
42
- # Unstable feature for testing
43
- test-in-browser = [" wasm-bindgen" ]
Original file line number Diff line number Diff line change @@ -230,19 +230,6 @@ cfg_if! {
230
230
target_env = "sgx" ,
231
231
) ) ) ] {
232
232
#[ path = "rdrand.rs" ] mod imp;
233
- } else if #[ cfg( all( target_arch = "wasm32" , target_os = "unknown" ) ) ] {
234
- cfg_if! {
235
- if #[ cfg( feature = "wasm-bindgen" ) ] {
236
- #[ path = "wasm32_bindgen.rs" ] mod imp;
237
- } else if #[ cfg( feature = "stdweb" ) ] {
238
- #[ path = "wasm32_stdweb.rs" ] mod imp;
239
- } else {
240
- compile_error!( "\
241
- Enable crate features to use the wasm32-unknown-unknown target, see: \
242
- https://docs.rs/getrandom/#support-for-webassembly-and-asmjs\
243
- ") ;
244
- }
245
- }
246
233
} else {
247
234
compile_error!( "\
248
235
target is not supported, for more information see: \
You can’t perform that action at this time.
0 commit comments