File tree Expand file tree Collapse file tree 2 files changed +0
-23
lines changed Expand file tree Collapse file tree 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 }
2828[target .'cfg(target_os = "wasi")' .dependencies ]
2929wasi = " 0.7"
3030
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-
3831[features ]
3932std = []
4033# Feature to enable custom RNG implementations
4134custom = []
4235# Unstable feature to support being a libstd dependency
4336rustc-dep-of-std = [" compiler_builtins" , " core" ]
44- # Unstable feature for testing
45- test-in-browser = [" wasm-bindgen" ]
4637
4738[package .metadata .docs .rs ]
4839features = [" std" , " custom" ]
Original file line number Diff line number Diff line change 126126 html_root_url = "https://rust-random.github.io/rand/"
127127) ]
128128#![ no_std]
129- #![ cfg_attr( feature = "stdweb" , recursion_limit = "128" ) ]
130129#![ warn( rust_2018_idioms, unused_lifetimes, missing_docs) ]
131130
132131#[ macro_use]
@@ -212,19 +211,6 @@ cfg_if! {
212211 target_env = "sgx" ,
213212 ) ) ) ] {
214213 #[ 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- }
228214 } else if #[ cfg( feature = "custom" ) ] {
229215 use custom as imp;
230216 } else {
You can’t perform that action at this time.
0 commit comments