Cargo subcommand that provides an interactive TUI for selecting and executing binary or example targets in Rust projects
cargo-selector is a Cargo subcommand that adds an interactive terminal interface for selecting and executing binary and example targets in Rust projects. Instead of manually typing cargo run --bin or cargo run --example commands, developers can run cargo selector to display a navigable list of available targets and execute them directly from the selection interface.
The tool provides fuzzy and substring matching for filtering targets, keyboard navigation with Vim-like keybindings (Ctrl+n/p for navigation), and the ability to switch between "run" and "build" actions using the Tab key. It supports passing additional arguments to the selected target and can filter by target kind (bin or example only). The interface displays target names, paths, and available features in a structured format.
Developers working on Rust projects with multiple binaries or examples will find this tool useful for quickly discovering and executing targets without remembering exact names. The tool supports configuration through TOML files for customizing match types and display colors, and offers both fullscreen and inline display modes for different workflow preferences.
# via Cargo
cargo install cargo-selector
# via AUR
paru -S cargo-selector