#deduplicate #warnings #cargo

app cargo-deduplicate-warnings

Deduplicate warning messages in the cargo json output

1 unstable release

0.1.0 Feb 13, 2024

#299 in Cargo plugins

Download history 85/week @ 2024-05-27 67/week @ 2024-06-03 55/week @ 2024-06-10 42/week @ 2024-06-17 55/week @ 2024-06-24 77/week @ 2024-07-01 24/week @ 2024-07-08 112/week @ 2024-07-22 46/week @ 2024-07-29 36/week @ 2024-08-05 72/week @ 2024-08-12 88/week @ 2024-08-19 68/week @ 2024-08-26 116/week @ 2024-09-02 71/week @ 2024-09-09

345 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–3MB
~57K SLoC