Login
You're viewing the fosstodon.org public feed.
  • clar fonclarfonthey@toot.cat
    Nov 18, 2026, 4:37 AM
    retooted Esteban Küber :rust:

    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

    💬 4🔄 44⭐ 51