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 <michael.weiss@eviden.com>
  • Loading branch information
primeos-work committed Jan 5, 2024
1 parent 8e77156 commit 10202d1
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
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 10202d1

Please sign in to comment.