External Publication
Visit Post

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

Rust Internals [Unofficial] February 22, 2026
Source

kpreid:

draw attention to the very first error , which is the one most likely to be accurate and relevant.

Only a workaround really, but what I find most useful when developing is to have a terminal open with the following running :

cargo watch --clear -x check -x build -x test -x clippy -x doc

--clear will clear the output when recompiling, so if there are errors I can go at the top and see the first error. Then when nothing errors, I see tests failing, then when tests pass I see clippy errors, etc.

Discussion in the ATmosphere

Loading comments...