Skip to content

Commit

Permalink
fix(deps): explicitly pull in sha2 asm extensions for non-windows tar…
Browse files Browse the repository at this point in the history
…gets

Signed-off-by: simonsan <[email protected]>
  • Loading branch information
simonsan committed Sep 21, 2024
1 parent 6d2476b commit d8f80a3
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
1 change: 1 addition & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,14 @@ toml = "0.8.8"
tungstenite = "0.21"
url = "2.5"

[target.'cfg(not(windows))'.dependencies]
sha2 = { version = "0.10.8", features = ["asm"] }

[target.'cfg(windows)'.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"

# see: https://nnethercote.github.io/perf-book/build-configuration.html
[profile.dev]
opt-level = 0
Expand Down

0 comments on commit d8f80a3

Please sign in to comment.