From a2f0ad36b0ca0ec55e05625a27e6efed6692f7f2 Mon Sep 17 00:00:00 2001 From: Dong Bo Date: Tue, 2 Feb 2021 09:35:45 +0800 Subject: [PATCH] use sha2-0.9.3 with features [compress, asm] --- storage-proofs-porep/Cargo.toml | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/storage-proofs-porep/Cargo.toml b/storage-proofs-porep/Cargo.toml index 57691c012c..aee0eb8072 100644 --- a/storage-proofs-porep/Cargo.toml +++ b/storage-proofs-porep/Cargo.toml @@ -19,6 +19,7 @@ merkletree = "0.21.0" mapr = "0.8.0" num-bigint = "0.2" num-traits = "0.2" +sha2 = { version = "0.9.3", features = ["compress", "asm"] } rayon = "1.0.0" serde = { version = "1.0", features = ["derive"]} serde_json = "1.0" @@ -40,11 +41,6 @@ libc = "0.2" fdlimit = "0.2.0" fr32 = { path = "../fr32", default-features = false } -[target."cfg(target_arch = \"aarch64\")".dependencies] -sha2 = { git = "https://github.com/RustCrypto/hashes.git", rev = "78f00c5f6d218", features = ["compress", "asm"] } -[target."cfg(target_arch = \"x86_64\")".dependencies] -sha2 = { git = "https://github.com/RustCrypto/hashes.git", rev = "78f00c5f6d218", features = ["compress"] } - [dev-dependencies] tempfile = "3" rand_xorshift = "0.2.0"