{
  "$type": "site.standard.document",
  "bskyPostRef": {
    "cid": "bafyreiapm5hgmlwbeim3vr35wmtc3vsb4nkgob4y3t5djfohmztrnx4c5m",
    "uri": "at://did:plc:ivbknywyskln22er3nkssdhl/app.bsky.feed.post/3mfmiqeylrck2"
  },
  "path": "/t/custom-cargo-command-to-show-only-errors-avoid-setting-rustflags-every-time/24032#post_13",
  "publishedAt": "2026-02-24T15:04:04.000Z",
  "site": "https://internals.rust-lang.org",
  "textContent": "Using \"context\" commands can help with this.\n\n\n    alias rust-no-warnings=\"env RUSTFLAGS=-Awarnings\"\n\n\nThen you can do `rust-no-warnings cargo` for a one-off build or `rust-no-warnings bash` for a \"session\" of it being active.\n\nIdeally it would amend `RUSTFLAGS`, in which case a simple shell script in `~/.local/bin` would be better.",
  "title": "Custom Cargo Command to Show Only Errors (Avoid Setting RustFLAGS Every Time)"
}