mirror of https://github.com/http-rs/surf
fix: pin getrandom to work on wasm
This commit is contained in:
parent
b1fc45c837
commit
fe19210007
|
@ -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
|
||||
|
|
|
@ -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"]
|
||||
|
|
Loading…
Reference in New Issue