Skip to content

Commit

Permalink
deps: switch from sha-1 to sha1
Browse files Browse the repository at this point in the history
The RustCrypto project recently got control of the crate name `sha1`.
This commit switches over to the new name; the old `sha-1` name is now
deprecated.

Details: RustCrypto/hashes#350
  • Loading branch information
benesch committed Aug 29, 2022
1 parent 79e417c commit 11fb911
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

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

24 changes: 21 additions & 3 deletions deny.toml
@@ -1,15 +1,33 @@
[bans]
multiple-versions = "deny"
# Do not add exemptions for duplicate dependencies! Duplicate dependencies slow
# down compilation and bloat the binary. Submit PRs upstream to remove
# duplicated transitive dependencies. If necessary, use patch directives in the
# root Cargo.toml to point at a Materialize-maintained fork that avoids the
# down compilation, bloat the binary, and tickle race conditions in `cargo doc`
# (see rust-lang/cargo#3613). Submit PRs upstream to remove duplicated
# transitive dependencies. If necessary, use patch directives in the root
# Cargo.toml to point at a Materialize-maintained fork that avoids the
# duplicated transitive dependencies.

# Use `tracing` instead.
[[bans.deny]]
name = "env_logger"

# Use `md-5` instead, which is part of the RustCrypto ecosystem.
[[bans.deny]]
name = "md5"

# Use `sha1` instead, which the RustCrypto ecosystem recently took control of.
# `sha-1` is the older and now deprecated name.
[[bans.deny]]
name = "sha-1"
wrappers = [
# https://github.com/hyperium/headers/pull/117
"headers",
# https://github.com/blackbeam/rust_mysql_common/pull/71
"mysql_common",
# https://github.com/snapview/tungstenite-rs/pull/299
"tungstenite",
]

# Use `prost` or `protobuf-native` instead.
[[bans.deny]]
name = "protobuf"
Expand Down
2 changes: 1 addition & 1 deletion src/expr/Cargo.toml
Expand Up @@ -42,7 +42,7 @@ regex-syntax = "0.6.27"
serde = { version = "1.0.144", features = ["derive"] }
serde_json = "1.0.82"
serde_regex = "1.1.0"
sha-1 = "0.10.0"
sha1 = "0.10.0"
sha2 = "0.10.2"
uncased = "0.9.7"
uuid = "1.1.2"
Expand Down

0 comments on commit 11fb911

Please sign in to comment.