Crates.io | cargo-rx |
lib.rs | cargo-rx |
version | 0.3.0 |
source | src |
created_at | 2022-04-01 16:40:37.964208 |
updated_at | 2023-03-13 21:28:28.581609 |
description | A simple fuzzy finder that allows you to search and run examples from the command line. It comes with the `rx` command. |
homepage | https://github.com/rnag/cargo-rx |
repository | https://github.com/rnag/cargo-rx |
max_upload_size | |
id | 560415 |
size | 118,971 |
cargo-rx
is a simple fuzzy finder and Runner for Examples in a Cargo project.
This crate provides a single executable: rx
.
Basically anywhere you would use cargo run --example
in a
Rust project, try rx
instead.
If this project has helped you, please consider making a donation.
Ensure that you have a fairly recent version of rust/cargo installed. Then, run:
$ cargo install cargo-rx
Compiler support: requires rustc 1.58+
Check out the Releases page for pre-built binaries compatible with various architectures.
Note that on a Windows environment, you will also need to have fzf installed and available in your $PATH variable.
An easy way to install fzf is via Chocolatey:
choco install fzf
There is currently a feature request open on skim
which proposes adding
support for Windows, but this has not been currently implemented yet --
thus, the fzf
tool serves as a stand-in alternative for now.
rx
.--
to the selected example.--replay
option.+nightly
toolchain when passed in unstable options to cargo run
, such as --unit-graph
.Contributions are welcome! Open a pull request to fix a bug, or open an issue to discuss a new feature or change.
Check out the Contributing section in the docs for more info.
Liked some of my work? Buy me a coffee (or more likely a beer)
This project is proudly licensed under the MIT license (LICENSE or http://opensource.org/licenses/MIT).
cargo-rx
can be distributed according to the MIT license. Contributions
will be accepted under the same license.
cargo-rx
is brought to you by Ritvik Nag.