GitHub - alopatindev/cargo-limit: Cargo with less noise: warnings are skipped un...
source link: https://github.com/alopatindev/cargo-limit
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
cargo-limit
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
- external path 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.
Initially this project was just a workaround for this issue.
Installation
From crates.io
cargo install cargo-limit
From git
cargo install --force --git https://github.com/alopatindev/cargo-limit
Usage
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.
Environment Variables
Text Editor/IDE integrations
Neovim Plugin
Plug , { : }
nvim +PlugInstall +UpdateRemotePlugins +qa
()
({: })
.name
()
: ()
: ()
: ()
Test the plugin! Known Limitations! See examples!
(editor_data)
(())
()
location (.)
(location.)
() &
.
((location.), (location.column))
::
(editor_data)
()
[]
[]
[] . . [] . . [] . . []
([])
()
Other Text Editors/IDEs
{
: ,
: [
{
: ,
: ,
: ,
: ,
:
}
]
}
Example: Gedit!
jq --raw-output
bash
Similar Projects / Inspirations
- bacon is a background rust code checker
- cargo-firstpage shows only the first page of rustc output
- ograc like cargo, but backwards
Thanks to all Contributors
Thanks everyone for code contributions and bug reporting. Special thanks to Casey Rodarmor for providing VimL code for quickfix populator and Otavio Salvador for NixOS package.
Wanna Contribute?
Please check out issues and kanban board. You can also make a package for your favorite OS distribution.
Support
Please support the project with crypto:
Bitcoin Tron (TRX, USDT-TRC20, etc.) Ethereum (ETH, DAI, etc.)
License
MIT/Apache-2.0
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK