Skip to content

Commit

Permalink
fix: use asm on aarch64 if not macos/m1
Browse files Browse the repository at this point in the history
  • Loading branch information
cryptonemo committed May 4, 2021
1 parent 11f3fa6 commit 983e8a2
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions sha2raw/Cargo.toml
Expand Up @@ -31,10 +31,14 @@ rand = "0.7.3"
rand_xorshift = "0.2.0"

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

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

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


0 comments on commit 983e8a2

Please sign in to comment.