File tree 2 files changed +0
-23
lines changed
2 files changed +0
-23
lines changed Original file line number Diff line number Diff line change @@ -28,21 +28,12 @@ libc = { version = "0.2.64", default-features = false }
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 = []
40
33
# Feature to enable custom RNG implementations
41
34
custom = []
42
35
# Unstable feature to support being a libstd dependency
43
36
rustc-dep-of-std = [" compiler_builtins" , " core" ]
44
- # Unstable feature for testing
45
- test-in-browser = [" wasm-bindgen" ]
46
37
47
38
[package .metadata .docs .rs ]
48
39
features = [" std" , " custom" ]
Original file line number Diff line number Diff line change 126
126
html_root_url = "https://rust-random.github.io/rand/"
127
127
) ]
128
128
#![ no_std]
129
- #![ cfg_attr( feature = "stdweb" , recursion_limit = "128" ) ]
130
129
#![ warn( rust_2018_idioms, unused_lifetimes, missing_docs) ]
131
130
132
131
#[ macro_use]
@@ -212,19 +211,6 @@ cfg_if! {
212
211
target_env = "sgx" ,
213
212
) ) ) ] {
214
213
#[ path = "rdrand.rs" ] mod imp;
215
- } else if #[ cfg( all( target_arch = "wasm32" , target_os = "unknown" ) ) ] {
216
- cfg_if! {
217
- if #[ cfg( feature = "wasm-bindgen" ) ] {
218
- #[ path = "wasm32_bindgen.rs" ] mod imp;
219
- } else if #[ cfg( feature = "stdweb" ) ] {
220
- #[ path = "wasm32_stdweb.rs" ] mod imp;
221
- } else {
222
- compile_error!( "\
223
- Enable crate features to use the wasm32-unknown-unknown target, see: \
224
- https://docs.rs/getrandom/#support-for-webassembly-and-asmjs\
225
- ") ;
226
- }
227
- }
228
214
} else if #[ cfg( feature = "custom" ) ] {
229
215
use custom as imp;
230
216
} else {
You can’t perform that action at this time.
0 commit comments