Crates

Crates are libraries or binaries that are typically stored in crates.io An alterative index that for me is easier to find crates of interest is: lib.rs

Below are some crates that I have found useful with associated notes.

Coding

There are many cool crate executables and the running cargo install to install them is a breeze (installation will take some time depending on the number of dependencies).

Subprocess/Shell

  • duct
    • This will run shell commands for you and manage stdout/stderr.
    • example
  • cargo install mdbook-mermaid
    • cool flowcharts and other graphs for your book

Executable Crates

  • cargo install cargo-upadte
    • cargo-update
    • then cargo install-update --list will list all the installed executables to check if they are up to date.
    • cargo install-update --all will update all installed executables to check if they are up to date.
  • ripgrep
    • better, faster grep