This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Commit 4057b91
1 parent 9db790e commit 4057b91 Copy full SHA for 4057b91
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 @@ -27,21 +27,12 @@ libc = { version = "0.2.64", default-features = false }
27
27
[target .'cfg(target_os = "wasi")' .dependencies ]
28
28
wasi = " 0.9"
29
29
30
- [target .wasm32-unknown-unknown .dependencies ]
31
- wasm-bindgen = { version = " 0.2.29" , optional = true }
32
- stdweb = { version = " 0.4.18" , optional = true }
33
-
34
- [target .wasm32-unknown-unknown .dev-dependencies ]
35
- wasm-bindgen-test = " 0.2"
36
-
37
30
[features ]
38
31
std = []
39
32
# Feature to enable custom RNG implementations
40
33
custom = []
41
34
# Unstable feature to support being a libstd dependency
42
35
rustc-dep-of-std = [" compiler_builtins" , " core" ]
43
- # Unstable feature for testing
44
- test-in-browser = [" wasm-bindgen" ]
45
36
46
37
[package .metadata .docs .rs ]
47
38
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]
@@ -191,19 +190,6 @@ cfg_if! {
191
190
target_env = "sgx" ,
192
191
) ) ) ] {
193
192
#[ path = "rdrand.rs" ] mod imp;
194
- } else if #[ cfg( all( target_arch = "wasm32" , target_os = "unknown" ) ) ] {
195
- cfg_if! {
196
- if #[ cfg( feature = "wasm-bindgen" ) ] {
197
- #[ path = "wasm32_bindgen.rs" ] mod imp;
198
- } else if #[ cfg( feature = "stdweb" ) ] {
199
- #[ path = "wasm32_stdweb.rs" ] mod imp;
200
- } else {
201
- compile_error!( "\
202
- Enable crate features to use the wasm32-unknown-unknown target, see: \
203
- https://docs.rs/getrandom/#support-for-webassembly-and-asmjs\
204
- ") ;
205
- }
206
- }
207
193
} else if #[ cfg( feature = "custom" ) ] {
208
194
use custom as imp;
209
195
} else {
You can’t perform that action at this time.
0 commit comments