Skip to content

Commit b3caf85

Browse files
committed
deps: switch from sha-1 to sha1
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
1 parent c3781dd commit b3caf85

File tree

3 files changed

+23
-5
lines changed

3 files changed

+23
-5
lines changed

Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

deny.toml

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

910
# Use `tracing` instead.
1011
[[bans.deny]]
1112
name = "env_logger"
1213

14+
# Use `md-5` instead, which is part of the RustCrypto ecosystem.
15+
[[bans.deny]]
16+
name = "md5"
17+
18+
# Use `sha1` instead, which the RustCrypto ecosystem recently took control of.
19+
# `sha-1` is the older and now deprecated name.
20+
[[bans.deny]]
21+
name = "sha-1"
22+
wrappers = [
23+
# https://github.com/hyperium/headers/pull/117
24+
"headers",
25+
# https://github.com/blackbeam/rust_mysql_common/pull/71
26+
"mysql_common",
27+
# https://github.com/snapview/tungstenite-rs/pull/299
28+
"tungstenite",
29+
]
30+
1331
# Use `prost` or `protobuf-native` instead.
1432
[[bans.deny]]
1533
name = "protobuf"

src/expr/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ regex-syntax = "0.6.27"
4242
serde = { version = "1.0.144", features = ["derive"] }
4343
serde_json = "1.0.82"
4444
serde_regex = "1.1.0"
45-
sha-1 = "0.10.0"
45+
sha1 = "0.10.0"
4646
sha2 = "0.10.2"
4747
uncased = "0.9.7"
4848
uuid = "1.1.2"

0 commit comments

Comments
 (0)