Rants, Ideas, Stuff

A blog about coding, coffee, and stuff

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

  • tempfile – tempfile and -dir handling
  • glob – globbing of filepaths

Web

Misc

  • csv – CSV handling