Skip to content

Commit

Permalink
fix: use asm feature on aarch64 unless also on macos
Browse files Browse the repository at this point in the history
  • Loading branch information
cryptonemo committed Apr 26, 2021
1 parent 418406e commit e0a76ff
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions sha2raw/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,11 @@ sha2 = "0.9.1"
rand = "0.7.3"
rand_xorshift = "0.2.0"

[target."cfg(target_arch = \"aarch64\")".features]
[features]
[target."cfg(all(target_os = \"macos\", target_arch = \"aarch64\"))".features]
default = []
[target."cfg(not(target_arch = \"aarch64\"))".features]
[target."cfg(not(all(target_os = \"macos\", target_arch = \"aarch64\")))".features]
default = ["asm"]

[features]
asm = ["sha2-asm"]
asm = ["sha2-asm", "asm"]


0 comments on commit e0a76ff

Please sign in to comment.