Cargo with less noise: - errors have highest priority - they never appear in the middle of warnings - warnings are skipped by default until errors are fixed - all dependencies' warnings are skipped by default - all messages come in reversed order by default - to avoid extra scrolling - messages are grouped by filenames - number of messages can be limited - after encountering first error the rest of build time is limited by default - files can be automatically opened in your text editor on affected lines
This tool is especially useful in combination with cargo-watch.
cargo install cargo-limit
cargo install --force --git https://github.com/alopatindev/cargo-limit
Run any of these in your project directory:
cargo lbench
cargo lbuild
cargo lcheck
cargo lclippy
cargo ldoc
cargo lfix
cargo lrun
cargo lrustc
cargo lrustdoc
cargo ltest
Also llcheck
, llrun
, etc.
See here.
CARGO_MSG_LIMIT
0
means no limit, which is defaultCARGO_TIME_LIMIT
cargo
execution time limit in seconds after encountering first compiling error1
is default0
means no limitCARGO_ASC
false
is defaultCARGO_FORCE_WARN
false
is defaultCARGO_DEPS_WARN
false
is defaultCARGO_EDITOR
""
) means don't run external app"_cargo-limit-open-in-nvim"
is defaultInitially it was just a workaround for this issue.
MIT/Apache-2.0