| Crates.io | cargo-recent |
| lib.rs | cargo-recent |
| version | 0.1.0 |
| created_at | 2025-06-16 15:52:03.400244+00 |
| updated_at | 2025-06-16 15:52:03.400244+00 |
| description | A tool to show and operate on recently changed crates |
| homepage | |
| repository | https://github.com/poi2/cargo-recent |
| max_upload_size | |
| id | 1714447 |
| size | 52,669 |
A Cargo subcommand to show and operate on the most recently changed crate in workspaces and single crate projects.
# Quick example: Run tests only on the crate you're currently working on
cargo recent test
cargo-recent simplifies your Rust development workflow by identifying the most recently changed crate and running cargo commands on it without manual specification.
This tool is especially useful when:
git - Used to detect changed files with git diff --name-onlycargo - Used to run cargo commands on the detected crateFrom crates.io (recommended):
cargo install cargo-recent
Or from local repository:
cargo install --path .
cargo recent path
This will output the path to the most recently changed crate. If there are no changes, it will output an empty string.
cargo recent show
This will output the name of the most recently changed crate. If there are no changes, it will output an empty string.
cargo recent <cargo-command> [args...]
For example:
cargo recent check
cargo recent build --release
cargo recent test -- --nocapture
This will run the specified cargo command on the most recently changed crate. If there are no changes, it will output an empty string and exit without running any cargo command.
This project is licensed under the MIT License - see the LICENSE file for details.