# Rust - Crates Ecosystem ## Managing Installed Crates ```bash cargo install --list # See installed cargo install-update -l # List outdated cargo install-update -a # Update all ``` ## Tools I Use Install via `brew` (recommended[^1]) or `cargo install`. [^1]: Keeping all tools under one package manager means `brew upgrade` updates everything in one go. Homebrew bottles are pre-built binaries, so installation is much faster than compiling from source with `cargo install`. It also doesn't require a Rust toolchain on the machine, and Homebrew handles PATH setup and dependencies automatically. ### Search & Files | Tool | Replaces | Description | Brew | Cargo | |------|----------|-------------|------|-------| | [ripgrep](https://github.com/BurntSushi/ripgrep) (rg) | grep | Fastest regex search, respects .gitignore | `brew install ripgrep` | `cargo install ripgrep` | | [fd](https://github.com/sharkdp/fd) | find | Intuitive file finder, respects .gitignore | `brew install fd` | `cargo install fd-find` | | [bat](https://github.com/sharkdp/bat) | cat | Syntax highlighting, line numbers, git diff | `brew install bat` | `cargo install bat` | | [eza](https://github.com/eza-community/eza) | ls | Modern ls with colors, git status, tree view | `brew install eza` | `cargo install eza` | ### Monitoring | Tool | Replaces | Description | Brew | Cargo | |------|----------|-------------|------|-------| | [bottom](https://github.com/ClementTsang/bottom) (btm) | top/htop | Graphical system monitor with CPU, RAM, network, disk | `brew install bottom` | `cargo install bottom` | | [procs](https://github.com/dalance/procs) | ps | Colorized process list with tree view and search | `brew install procs` | `cargo install procs` | | [bandwhich](https://github.com/imsnif/bandwhich) | — | Per-process/connection network bandwidth monitor | `brew install bandwhich` | `cargo install bandwhich` | | [[Macmon]] | — | Sudoless Apple Silicon monitor (CPU/GPU/temp/power) | `brew install macmon` | — | ### Networking & Developer Tools | Tool | Replaces | Description | Brew | Cargo | |------|----------|-------------|------|-------| | [[Xh]] | curl/HTTPie | Friendly HTTP client, HTTPie-compatible syntax | `brew install xh` | `cargo install xh` | | [tealdeer](https://github.com/dbrgn/tealdeer) (tldr) | man | Community-driven cheatsheets for CLI commands | `brew install tealdeer` | `cargo install tealdeer` | | [hyperfine](https://github.com/sharkdp/hyperfine) | time | Statistical benchmarking with warmup and comparison | `brew install hyperfine` | `cargo install hyperfine` | ### Quick Start ```bash brew install ripgrep fd bat ``` --- ## Interesting but Untested Read about these in various blogs. Could be worth trying but I haven't used them enough to endorse. | Tool | Replaces | Description | Brew | Cargo | |------|----------|-------------|------|-------| | [dust](https://github.com/bootandy/dust) | du | Visual disk usage with tree layout | `brew install dust` | `cargo install du-dust` | | [nushell](https://github.com/nushell/nushell) | bash/zsh | Structured-data shell, treats output as tables | `brew install nushell` | `cargo install nu` | | [zoxide](https://github.com/ajeetdsouza/zoxide) | cd/autojump | Learns your frequent directories, smart jump | `brew install zoxide` | `cargo install zoxide` | | [hexyl](https://github.com/sharkdp/hexyl) | xxd | Colorized hex viewer with ASCII sidebar | `brew install hexyl` | `cargo install hexyl` | | [just](https://github.com/casey/just) | make | Command runner without make's implicit rules | `brew install just` | `cargo install just` | | [choose](https://github.com/theryangeary/choose) | cut/awk | Simple field selection from piped input | `brew install choose` | `cargo install choose` | | [jless](https://github.com/PaulJuliusjless/jless) | — | Interactive JSON viewer in the terminal | `brew install jless` | `cargo install jless` | | [helix](https://github.com/helix-editor/helix) | vim | Modal editor with built-in LSP and tree-sitter | `brew install helix` | `cargo install helix` | | [amp](https://github.com/jmacdonald/amp) | vim | Lightweight modal editor inspired by vim | `brew install amp` | `cargo install amp` | | [uutils-coreutils](https://github.com/uutils/coreutils) | GNU coreutils | Drop-in Rust rewrite of ls, cp, mv, etc. | `brew install uutils-coreutils` | `cargo install coreutils` |