Skip to content

Commit

Permalink
use pre-release crate for sha2
Browse files Browse the repository at this point in the history
Signed-off-by: simonsan <[email protected]>
  • Loading branch information
simonsan committed Nov 9, 2024
1 parent dbb95f8 commit 900c70c
Show file tree
Hide file tree
Showing 2 changed files with 70 additions and 20 deletions.
81 changes: 69 additions & 12 deletions Cargo.lock

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

9 changes: 1 addition & 8 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -44,19 +44,12 @@ serde = "1"
serde_derive = "1.0.210"
serde_json = "1"
serde_with = "3"
sha2 = "0.11.0-pre.4"
tokio = { version = "1", features = ["full"] }
toml = "0.8.19"
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 900c70c

Please sign in to comment.