External Publication
Visit Post

Custom Cargo Command to Show Only Errors (Avoid Setting RustFLAGS Every Time)

Rust Internals [Unofficial] February 22, 2026
Source

Setting RUSTFLAGS="-Awarnings" manually every time you run cargo is annoying and repetitive. Could we have a flag such as --errors when running cargo to make it easier to display errors as sometimes warnings make it hard to find.

Discussion in the ATmosphere

Loading comments...