cargo-selector

Interactive Cargo target selector

TLDR

Interactively select and run a binary target
$ cargo selector run
Interactively select and run a test
$ cargo selector test
Interactively select and run a benchmark
$ cargo selector bench
Interactively select and run an example
$ cargo selector example

SYNOPSIS

cargo selector command [options]

DESCRIPTION

cargo-selector is a Cargo subcommand that provides an interactive fuzzy-search interface for selecting and running targets in a Rust project. Instead of typing exact target names, it presents a searchable list of available binaries, tests, examples, or benchmarks and runs the selected one.This is particularly useful in workspaces or projects with many targets, where remembering exact names is impractical. The selector uses a fuzzy finder interface for quick filtering.

INSTALL

sudo apt install cargo
sudo dnf install cargo
sudo apk add cargo
sudo zypper install cargo
nix profile install nixpkgs#cargo

CAVEATS

Requires a valid Cargo project with defined targets. Additional arguments to the underlying cargo command may need to be passed after the target selection.

SEE ALSO

cargo(1), fzf(1)