Crates you should know for Rust Scripting
For now this is just an overview for reference. I’ll write a blog post showing each crate and link them here.
CLI
- clap – CLI argument parsing
- structopt – clap configuration in a struct
- thunder – experimental zero-boilerplate configuration for clap (requires nightly)
- exitcode – Standard unix exit codes
- chan-signal – handling of OS signals
- termion – Low level terminal stuff
- linefeed – Interactive input reader
- rustyline – readline implementation (seems to be abandoned)
- prettytable – output tables
Files
Web
- reqwest – HTTP client
- scraper – HTML parsing/CSS selectors 1
- kuchiki – HTML parsing/CSS selectors 2
- select.rs – HTML data extractor
Misc
- csv – CSV handling