Crates.io | cargo-run-selectable |
lib.rs | cargo-run-selectable |
version | 0.1.1 |
source | src |
created_at | 2024-08-18 17:14:37.532298 |
updated_at | 2024-08-18 17:23:03.725713 |
description | A simple Rust utility that helps developers run `cargo run` in workspaces with multiple binary targets without needing to specify one beforehand. When you run the program, it will prompt you to select a target from the list of available binary targets in the workspace. |
homepage | |
repository | https://github.com/maciejlewandowskii/cargo-run-selectable |
max_upload_size | |
id | 1342810 |
size | 14,773 |
A simple Rust utility that helps developers run cargo run
in workspaces with multiple binary targets without needing to specify one beforehand.
When you run the program, it will prompt you to select a target from the list of available binary targets in the workspace.
Important: This utility is currently incompatible with Windows due to the lack of support for the process::CommandExt
trait's exec
method on the Windows platform. The exec
method is crucial for replacing the current process with a new one, which is not natively supported in Windows. For more details on this limitation, you can refer to this explanation.
As a result, this utility is best suited for Unix-like operating systems such as Linux and macOS.
You can install this utility directly from crates.io using cargo
or binstall
.
cargo install
:cargo install cargo-run-selectable
cargo binstall
:cargo binstall cargo-run-selectable
git clone https://github.com/maciejlewandowskii/cargo-run-selectable
cd cargo-run-selectable
cargo build --release # now you can copy file from target/release and just use it