]> Untitled Git - bdk-cli/commitdiff
[cargo] Add the required `rand` features for `wasm32`
authorAlekos Filini <alekos.filini@gmail.com>
Wed, 16 Sep 2020 15:30:11 +0000 (17:30 +0200)
committerAlekos Filini <alekos.filini@gmail.com>
Wed, 16 Sep 2020 15:30:11 +0000 (17:30 +0200)
Cargo.toml

index 75aa44965b45468e46da67c68c0cf5689269c95e..9d12a8ebfdf73ca0631b8ff10e5641a5fa3cb4bb 100644 (file)
@@ -36,6 +36,7 @@ tokio = { version = "0.2", features = ["rt-core"] }
 [target.'cfg(target_arch = "wasm32")'.dependencies]
 async-trait = "0.1"
 js-sys = "0.3"
+rand = { version = "^0.7", features = ["wasm-bindgen"] }
 
 [features]
 minimal = []
@@ -61,7 +62,6 @@ lazy_static = "1.4"
 rustyline = "6.0"
 dirs = "2.0"
 env_logger = "0.7"
-rand = "0.7"
 
 [[example]]
 name = "repl"