LinuxCommandLibrary

cargo-selector

Interactive Cargo target selector

TLDR

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

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.

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)

> TERMINAL_GEAR

Curated for the Linux community

Copied to clipboard