fix(solc): enable sha2 asm for checksum speed (#626)

This commit is contained in:
Georgios Konstantopoulos 2021-11-26 17:09:06 +02:00
parent 0b68227c38
commit ca558b08d6
2 changed files with 15 additions and 1 deletions

10
Cargo.lock generated
View File

@ -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]]

View File

@ -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"] }