cargo-deduplicate-warnings

Crates.iocargo-deduplicate-warnings
lib.rscargo-deduplicate-warnings
version0.1.0
sourcesrc
created_at2024-02-13 01:06:53.60363
updated_at2024-02-13 01:06:53.60363
descriptionDeduplicate warning messages in the cargo json output
homepagehttps://github.com/swlynch99/cargo-deduplicate-warnings
repositoryhttps://github.com/swlynch99/cargo-deduplicate-warnings
max_upload_size
id1137557
size23,028
Sean Lynch (swlynch99)

documentation

README

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 | ...
Commit count: 0

cargo fmt