diff --git a/storage-proofs-porep/Cargo.toml b/storage-proofs-porep/Cargo.toml index 0f5f6b67d..83bb930df 100644 --- a/storage-proofs-porep/Cargo.toml +++ b/storage-proofs-porep/Cargo.toml @@ -19,7 +19,6 @@ merkletree = "0.21.0" mapr = "0.8.0" num-bigint = "0.2" num-traits = "0.2" -sha2 = { version = "0.9.1", features = ["compress"] } rayon = "1.0.0" serde = { version = "1.0", features = ["derive"]} serde_json = "1.0" @@ -41,6 +40,11 @@ libc = "0.2" fdlimit = "0.2.0" fr32 = { path = "../fr32", default-features = false } +[target."cfg(target_arch = \"aarch64\")".dependencies] +sha2 = { version = "0.9.3", features = ["compress", "asm"] } +[target."cfg(not(target_arch = \"aarch64\"))".dependencies] +sha2 = { version = "0.9.3", features = ["compress"] } + [dev-dependencies] tempfile = "3" rand_xorshift = "0.2.0"