From dea2b5dffccd33499edc6ff139b2dea7465459e0 Mon Sep 17 00:00:00 2001 From: Sam Wilson <57262657+SamWilsn@users.noreply.github.com> Date: Mon, 4 Nov 2019 20:28:35 -0500 Subject: [PATCH] Depend on sha2 in eth2_hashing for wasm32 (#589) --- eth2/utils/eth2_hashing/Cargo.toml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/eth2/utils/eth2_hashing/Cargo.toml b/eth2/utils/eth2_hashing/Cargo.toml index 3e7d8ed3f1..af48d0d4e7 100644 --- a/eth2/utils/eth2_hashing/Cargo.toml +++ b/eth2/utils/eth2_hashing/Cargo.toml @@ -9,6 +9,9 @@ description = "Hashing primitives used in Ethereum 2.0" [target.'cfg(not(target_arch = "wasm32"))'.dependencies] ring = "0.16.9" +[target.'cfg(target_arch = "wasm32")'.dependencies] +sha2 = "0.8.0" + [dev-dependencies] rustc-hex = "2.0.1"