fix: pin getrandom to work on wasm

This commit is contained in:
Jonathan Kelley 2021-07-27 15:44:52 -04:00
parent b1fc45c837
commit fe19210007
2 changed files with 4 additions and 4 deletions

View File

@ -48,7 +48,10 @@ cfg-if = "1.0.0"
# encoding
encoding_rs = { version = "0.8.20", optional = true }
# wasm-client
# wasm-client config
[target.'cfg(target_arch = "wasm32")'.dependencies.getrandom]
version = "0.2"
features = ["js"]
[target.'cfg(target_arch = "wasm32")'.dependencies.web-sys]
version = "0.3.25"
optional = true

View File

@ -9,6 +9,3 @@ wasm-bindgen-test = "0.3.24"
async-std = "1.6.4"
serde_json = "1.0.57"
[dependencies.getrandom]
version = "0.2"
features = ["js"]