Skip to content

Commit

Permalink
fix(deps): build sha2-asm on windows-gnu
Browse files Browse the repository at this point in the history
Signed-off-by: simonsan <[email protected]>
  • Loading branch information
simonsan committed Sep 21, 2024
1 parent 6ebe66c commit 3a43f93
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ url = "2.5"
[target.'cfg(any(not(windows), target_env = "gnu"))'.dependencies]
sha2 = { version = "0.10.8", features = ["asm"] }

[target.'cfg(windows)'.dependencies]
[target.'cfg(all(windows, not(target_env = "gnu")))'.dependencies]
# unfortunately, the asm extensions do not build on Windows, see https://github.com/RustCrypto/asm-hashes/issues/17
# and https://github.com/RustCrypto/asm-hashes/pull/issues/78
sha2 = "0.10.8"
Expand Down

0 comments on commit 3a43f93

Please sign in to comment.