Elektrine lite

← Feed

@ekuber@hachyderm.io

2026-11-18 04:24 UTC

If you use nightly Rust and run rustup update, you'll find a new goodie tonight that I'm particularly happy about: experimental "no graphics" diagnostics in `cargo` behind the flag `-Zterm-graphics` and in `rustc` behind the flags `-Znightly-features --error-format=human-no-graphics`. (These names will likely change.) You can permanently turn this feature on, which will only take effect in nightly, by adding the following to your `.cargo/config.toml`, which will be used on nightly and ignored on stable: ``` [unstable] term-graphics = true ``` If you also add `NO_GRAPHICS=1` to your environment flags, the all of your builds using nightly will use the new output. In lieu of the environment variable, you can also add the following to your `.cargo/config.toml`, but this will make stable `cargo` complain about an unused config key: ``` [term] graphics = false ``` Once the feature is stable, it will be much smoother, but expect rough edges at this time. Do let us know about them when you encounter them! #RustLang #Rust #a11y #Accessibility

Replies (1)

  • @ekuber@hachyderm.io 2026-11-18 04:27

    What this new mode does is tweak the way that all diagnostics in `cargo` and `rustc` are rendered, avoiding the ASCII art, making it, hopefully, more suitable for users relying on screen-readers/Text-To-Speech and Braille displays. It also has the side-effect of being a more compact output, which might interest people for whom the `rustc` output was always bothersome in its verbosity, but that considered `--message-format=short` to be *too* terse. #RustLang #Rust #a11y #Accessibility

    Open ##5554329