fix(ethers): auto-enable asm when supported (x86/x64 and not msvc) (#710)

This commit is contained in:
Georgios Konstantopoulos 2021-12-19 18:02:22 +02:00 committed by GitHub
parent d7c29cc615
commit 9c11f6cb7b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 1 deletions

View File

@ -92,6 +92,9 @@ ethers-etherscan = { version = "^0.2.0", default-features = false, path = "./eth
ethers-contract = { version = "^0.6.0", default-features = false, path = "./ethers-contract", features = ["abigen", "eip712"] }
ethers-providers = { version = "^0.6.0", default-features = false, path = "./ethers-providers", features = ["ws"] }
[target.'cfg(all(any(target_arch = "x86", target_arch = "x86_64"), not(target_env = "msvc")))'.dependencies]
ethers-solc = { version = "^0.1.0", default-features = false, path = "./ethers-solc", features = ["asm"] }
[target.'cfg(target_family = "unix")'.dev-dependencies]
ethers-providers = { version = "^0.6.0", default-features = false, path = "./ethers-providers", features = ["ws", "ipc"] }
anyhow = "1.0.39"

View File

@ -68,4 +68,4 @@ project-util = ["tempdir", "fs_extra"]
tests = []
openssl = ["svm/openssl"]
rustls = ["svm/rustls"]
asm = ["sha2/asm"]
asm = ["sha2/asm", "svm/sha2-asm"]