Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cybersiddhu/45a2c760eaa97709073c6d6c17afbe3e to your computer and use it in GitHub Desktop.
Save cybersiddhu/45a2c760eaa97709073c6d6c17afbe3e to your computer and use it in GitHub Desktop.
A curated list of command-line utilities written in Rust

A curated list of command-line utilities written in Rust

Note that I have not tried all of these personally, and cannot and do not vouch for all of the tools listed here. In most cases, the descriptions here are copied directly from their code repos. Some may have been abandoned. Investigate before installing/using.

The ones I use regularly include: bat, dust, exa, fd, hyperfine, miniserve, ripgrep, just, zoxide and cargo-wipe.

  • atuin: "Magical shell history"
  • bandwhich: Terminal bandwidth utilization tool
  • bat: A replacement for cat that provides syntax highlighting and other features.
  • bottom: Yet another cross-platform graphical process/system monitor.
  • broot: A new way to see and navigate directory trees
  • counts: "A tool for ad hoc profiling"
  • choose: A human-friendly and fast alternative to cut and (sometimes) awk
  • delta: A syntax-highlighting pager for git, diff, and grep output
  • difftastic: A syntax-aware diff
  • dog: A command-line DNS client
  • dua: "View disk space usage and delete unwanted data, fast."
  • dust: "a more intuitive version of du in Rust"
  • exa: "A modern version of ls"
  • fclones: an "efficient duplicate file finder"
  • fd: "A simple, fast and user-friendly alternative to find"
  • felix: tui file manager with vim-like key mapping
  • frum: A modern Ruby version manager written in Rust
  • grex: A command-line tool and library for generating regular expressions from user-provided test cases
  • htmlq: Like jq, but for HTML. Uses CSS selectors to extract bits of content from HTML files.
  • hyperfine: Command-line benchmarking tool
  • inlyne: "GPU powered yet browsless tool to help you quickly view markdown files"
  • jql: A JSON query language CLI tool
  • just: Just a command runner (seems like an alternative to make)
  • lfs: A Linux utility to get information on filesystems; like df but better
  • lsd: The next generation ls command (though personally I prefer exa)
  • macchina: Fast, minimal and customizable system information frontend.
  • mdBook: Create books from markdown files. Like Gitbook but implemented in Rust
  • mdcat: Fancy cat for Markdown
  • miniserve is “a CLI tool to serve files and dirs over HTTP”. I use this as a replacement for python -m SimpleHTTPServer, or whatever the latest version of that command is.
  • monolith: Save complete web pages as a single HTML file
  • pastel: A command-line tool to generate, analyze, convert and manipulate colors.
  • procs: A modern replacement for ps written in Rust
  • qsv: CSVs sliced, diced & analyzed. (A fork of xsv)
  • rip: A safe and ergonomic alternative to rm
  • ripgrep: A faster replacement for GNU’s grep command. This tool is very good.
  • ripsecrets: Find secret keys in your code before commiting them to git. I've contributed to this one!
  • sd: Intuitive find & replace CLI (sed alternative).
  • tealdear: A very fast implementation of tldr in Rust.
  • tin-summer: Find build artifacts that are taking up disk space
  • tokei: Count your (lines of) code, quickly
  • topgrade: Upgrade all of your tools
  • watchexec: Execute commands in response to file modifications. (Note: See cargo watch if you want to watch a Rust project.)
  • xcp: An extended cp
  • xh: "Friendly and fast tool for sending HTTP requests"
  • xsv: A fast CSV command line toolkit written in Rust. (Last updated in 2018)
  • zoxide: A smarter cd command.

Tools to help working with Rust lang itself

  • cargo-audit: Audit Cargo.lock files for crates with security vulnerabilities reported to the RustSec Advisory Database.
  • cargo-geiger: Detects usage of unsafe Rust in a Rust crate and its dependencies.
  • cargo-wipe: Cargo subcommand that recursively finds and optionally wipes all "target" or "node_modules" folders that are found in the current path.
  • cargo-crev: A cryptographically verifiable code review system for the cargo (Rust) package manager.
  • bacon: A background Rust code checker
  • cargo watch: Watches over your Cargo project's source.
  • cargo-binstall: "Binary installation for [R]ust projects"

Terminal emulators / terminal-related

  • Alacritty: A cross-platform, OpenGL terminal emulator.
  • Wezterm: A GPU-accelerated cross-platform terminal emulator and multiplexer written by @wez and implemented in Rust
  • Starship: Customizable prompt for any shell.

Text editors written in Rust

See this "Battle of the [Rust] text editors" post from 2022.

Other lists of Rust command line utilities

Tips

exa aliases I use in my ~/.bashrc

if hash exa 2>/dev/null; then
    alias ls='exa'
    alias l='exa -l --all --group-directories-first --git'
    alias ll='exa -l --all --all --group-directories-first --git'
    alias lt='exa -T --git-ignore --level=2 --group-directories-first'
    alias llt='exa -lT --git-ignore --level=2 --group-directories-first'
    alias lT='exa -T --git-ignore --level=4 --group-directories-first'
else
    alias l='ls -lah'
    alias ll='ls -alF'
    alias la='ls -A'
fi

Shameless plug: Tools that I've written in Rust

  • Tidy: A command-line tool for combining and cleaning large word list files.

Know a good one that I don't have listed here?

Let me know in the comments, a PR, on Mastodon or Twitter.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment