Skip to content

Commit 3a555f5

Browse files
authored
Address cargo audit failure RUSTSEC-2024-0437 (#7114)
Resolves #7091 The `prometheus` crate pulls in `protobuf 2.x` which fails cargo audit. We actually dont use any `protobuf` related features in LH. By disabling default features for `prometheus`, we no longer pull in the `protobuf` crate
1 parent 2c40f0b commit 3a555f5

File tree

3 files changed

+2
-9
lines changed

3 files changed

+2
-9
lines changed

Cargo.lock

Lines changed: 0 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ mockito = "1.5.0"
161161
num_cpus = "1"
162162
parking_lot = "0.12"
163163
paste = "1"
164-
prometheus = "0.13"
164+
prometheus = { version = "0.13", default-features = false }
165165
quickcheck = "1"
166166
quickcheck_macros = "1"
167167
quote = "1"

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,7 @@ install-audit:
250250
cargo install --force cargo-audit
251251

252252
audit-CI:
253-
cargo audit --ignore RUSTSEC-2024-0437
253+
cargo audit
254254

255255
# Runs `cargo vendor` to make sure dependencies can be vendored for packaging, reproducibility and archival purpose.
256256
vendor:

0 commit comments

Comments
 (0)