3

GitHub - alopatindev/cargo-limit: Cargo with less noise: warnings are skipped un...

 1 year ago
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.
neoserver,ios ssh client

cargo-limit

rocket 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.

asciicast

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.

bulb Environment Variables eye

Text Editor/IDE integrations

bulb Neovim Plugin eye

Plug , { :  }
nvim +PlugInstall +UpdateRemotePlugins +qa
 ()
     
     ({: })
     .name  
         
      
    
  

   
     ()
  
     
  


  : ()
  : ()
  : ()

bulb Test the plugin! eyewarning Known Limitations! eyebulb See examples! eye

 (editor_data)
     (())
       ()
    
  
   location  (.)
       (location.)
     ()    &  
        . 
       ((location.), (location.column))
    
      
    
  
  ::

 (editor_data)
     ()

   []
     []
     [] .  . [] .  . [] .  . []
  

   ([])
    
  
    
  

     ()
     
  

bulb Other Text Editors/IDEs eye

{
  : ,
  : [
    {
      : ,
      : ,
      : ,
      : ,
      : 
    }
  ]
}

bulb Example: Gedit! eye



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 heart

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:

coin Bitcoin eyecoin Tron (TRX, USDT-TRC20, etc.) eyecoin Ethereum (ETH, DAI, etc.) eye

License

MIT/Apache-2.0


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK