Skip to content

Commit

Permalink
Replace the deprecated sha-1 crate with sha1
Browse files Browse the repository at this point in the history
The `sha-1` crate doesn't get updated anymore and the `sha1` crate
should be used instead (the crate only got renamed [1]) [0]:
> This crate is deprecated! Use the sha1 crate instead.

Note: The `sha-1` crate is currently stuck at `v0.10.1` despite the
following claim to update it until v0.11:
> The SHA-1 implementation was previously published as sha-1, but
> migrated to sha1 since v0.10.0. sha-1 will continue to receive v0.10.x
> patch updates, but will be deprecated after sha1 v0.11 release.

[0]: https://crates.io/crates/sha-1
[1]: RustCrypto/hashes#350

Signed-off-by: Michael Weiss <[email protected]>
  • Loading branch information
primeos-work authored and ammernico committed Apr 30, 2024
1 parent fae0560 commit 0ea6a7d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions Cargo.lock

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

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ rustversion = "1"
semver = { version = "1", features = [ "serde" ] }
serde = "1"
serde_json = "1"
sha-1 = "0.10"
sha1 = "0.10"
sha2 = "0.10"
shiplift = "0.7"
syntect = "5"
Expand Down

0 comments on commit 0ea6a7d

Please sign in to comment.