Skip to content

Commit

Permalink
feat: use feature [compress, asm] of sha2 for aarch64 (#1404)
Browse files Browse the repository at this point in the history
  • Loading branch information
dgbo authored Mar 8, 2021
1 parent f937802 commit dbb5bdd
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion storage-proofs-porep/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -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"
Expand Down

0 comments on commit dbb5bdd

Please sign in to comment.