diff --git a/Cargo.lock b/Cargo.lock index 07a1e048..7b11daf9 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -2794,6 +2794,16 @@ dependencies = [ "cpufeatures", "digest 0.9.0", "opaque-debug 0.3.0", + "sha2-asm", +] + +[[package]] +name = "sha2-asm" +version = "0.6.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bf27176fb5d15398e3a479c652c20459d9dac830dedd1fa55b42a77dbcdbfcea" +dependencies = [ + "cc", ] [[package]] diff --git a/ethers-solc/Cargo.toml b/ethers-solc/Cargo.toml index 828c0c2a..743afd9a 100644 --- a/ethers-solc/Cargo.toml +++ b/ethers-solc/Cargo.toml @@ -24,15 +24,19 @@ futures-util = { version = "0.3.18", optional = true } once_cell = "1.8.0" regex = "1.5.4" md-5 = "0.9.1" -sha2 = "0.9.8" thiserror = "1.0.30" hex = "0.4.3" colored = "2.0.0" svm = { package = "svm-rs", version = "0.2.0", optional = true } glob = "0.3.0" +tracing = "0.1.29" + +[target.'cfg(target_arch = "wasm32")'.dependencies] +sha2 = { version = "0.9.8" } [target.'cfg(not(target_arch = "wasm32"))'.dependencies] home = "0.5.3" +sha2 = { version = "0.9.8", features = ["asm"] } [dev-dependencies] tokio = { version = "1.12.0", features = ["full"] }