{
"$type": "site.standard.document",
"bskyPostRef": {
"cid": "bafyreihciqpjrsdbcx3tpgaie6lkmwet7gntt4c6lkxwdhieypep6a3dhq",
"uri": "at://did:plc:ivbknywyskln22er3nkssdhl/app.bsky.feed.post/3mfhpgb6a4uz2"
},
"path": "/t/custom-cargo-command-to-show-only-errors-avoid-setting-rustflags-every-time/24032#post_5",
"publishedAt": "2026-02-22T17:52:58.000Z",
"site": "https://internals.rust-lang.org",
"textContent": "kpreid:\n\n> draw attention to the **very first error** , which is the one most likely to be accurate and relevant.\n\nOnly a workaround really, but what I find most useful when developing is to have a terminal open with the following running :\n\n\n cargo watch --clear -x check -x build -x test -x clippy -x doc\n\n\n`--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.",
"title": "Custom Cargo Command to Show Only Errors (Avoid Setting RustFLAGS Every Time)"
}