File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -27,21 +27,12 @@ libc = { version = "0.2.64", default-features = false }
2727[target .'cfg(target_os = "wasi")' .dependencies ]
2828wasi = " 0.9"
2929
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-
3730[features ]
3831std = []
3932# Feature to enable custom RNG implementations
4033custom = []
4134# Unstable feature to support being a libstd dependency
4235rustc-dep-of-std = [" compiler_builtins" , " core" ]
43- # Unstable feature for testing
44- test-in-browser = [" wasm-bindgen" ]
4536
4637[package .metadata .docs .rs ]
4738features = [" 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]
@@ -191,19 +190,6 @@ cfg_if! {
191190 target_env = "sgx" ,
192191 ) ) ) ] {
193192 #[ 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- }
207193 } else if #[ cfg( feature = "custom" ) ] {
208194 use custom as imp;
209195 } else {
You can’t perform that action at this time.
0 commit comments