#warnings #cargo #deduplicate #output #messages #json #duplicate

app cargo-deduplicate-warnings

Deduplicate warning messages in the cargo json output

1 unstable release

0.1.0 Feb 13, 2024

#222 in Cargo plugins

Download history 38/week @ 2024-02-12 26/week @ 2024-02-19 48/week @ 2024-02-26 17/week @ 2024-03-04 9/week @ 2024-03-11 16/week @ 2024-03-25

62 downloads per month

MIT/Apache

9KB

cargo-deduplicate-warnings

This crate is a binary which deduplicates warning messages in the json output of cargo.

Normally, cargo does this for you when using its normal output. However, when you have other tools that consume cargo's json output (e.g. clippy-sarif) then the duplicate warnings show up downstream. This crate allows you to avoid the issue by stripping them out.

Usage

cargo clippy --message-format json | cargo deduplicate-warnings | ...

Dependencies

~2–2.9MB
~55K SLoC