I want to use cargo build --message-format=short or cargo check --message-format=short
as default setting
Might be worth filing a feature request (couldn't find one) for a CARGO_MESSAGE_FORMAT environment variable and/or a configuration option under [term] (which'd be the two most obvious places to put global configuration of the message format IMO).
Understand Better + Faster
Cursor and Other VibeCoding IDE use cargo build in the terminal , but the default message is format for humanreading ,
it take more tokens
it is hard to understand for Ai , for example
For human
warning: unused variable: `x`
| --> src\main.rs:6:9
| 6 | let x : i32 =2 ;
| ^ help: if this is intentional, prefix it with an underscore: `_x`
| = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
For Ai
warning: unused variable: `x` --> src\main.rs:6:9 | 6 | let x : i32 =2 ; | ^ help: if this is intentional, prefix it with an underscore: `_x` | = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
there are many useless words like |^--> and many space
So it is hard to understanding and take more tokens