diff --git a/ethers-solc/Cargo.toml b/ethers-solc/Cargo.toml index faf7d9102..27d631095 100644 --- a/ethers-solc/Cargo.toml +++ b/ethers-solc/Cargo.toml @@ -33,10 +33,10 @@ tracing = "0.1.29" num_cpus = "1.13.0" tiny-keccak = { version = "2.0.2", default-features = false } -[target.'cfg(not(any(target_arch = "x86", target_arch = "x86_64")))'.dependencies] +[target.'cfg(any(not(any(target_arch = "x86", target_arch = "x86_64")), target_env = "msvc"))'.dependencies] sha2 = { version = "0.9.8", default-features = false } -[target.'cfg(any(target_arch = "x86", target_arch = "x86_64"))'.dependencies] +[target.'cfg(all(any(target_arch = "x86", target_arch = "x86_64"), not(target_env = "msvc")))'.dependencies] sha2 = { version = "0.9.8", default-features = false, features = ["asm"] } [target.'cfg(not(target_arch = "wasm32"))'.dependencies]