From cf2a8bccaca95913a3da6bbfea46fcf9841dcf70 Mon Sep 17 00:00:00 2001 From: Alekos Filini Date: Wed, 16 Sep 2020 17:30:11 +0200 Subject: [PATCH] [cargo] Add the required `rand` features for `wasm32` --- Cargo.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Cargo.toml b/Cargo.toml index 75aa4496..9d12a8eb 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -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"