From 437f9de92f2ed1df707fa2810c4d11df53996821 Mon Sep 17 00:00:00 2001 From: James Prestwich <10149425+prestwich@users.noreply.github.com> Date: Fri, 3 Dec 2021 12:03:26 -0800 Subject: [PATCH] fix: specify home-dep as non-wasm instead of x86-only (#645) --- ethers-solc/Cargo.toml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ethers-solc/Cargo.toml b/ethers-solc/Cargo.toml index 296b002b..fbd7a592 100644 --- a/ethers-solc/Cargo.toml +++ b/ethers-solc/Cargo.toml @@ -35,9 +35,11 @@ tracing = "0.1.29" sha2 = { version = "0.9.8", default-features = false } [target.'cfg(any(target_arch = "x86", target_arch = "x86_64"))'.dependencies] -home = "0.5.3" sha2 = { version = "0.9.8", default-features = false, features = ["asm"] } +[target.'cfg(not(target_arch = "wasm32"))'.dependencies] +home = "0.5.3" + [target.'cfg(target_arch = "wasm32")'.dependencies] # NOTE: this enables wasm compatibility for getrandom indirectly getrandom = { version = "0.2", features = ["js"] }