cargo-search2
A binary utility that provides a more convenient version of cargo search.
Installation
Grab pre-built binaries for your platform from the releases page.
To grab releases in CI or other automation:
|
Install manually:
Examples
# output:
)
}
# Get an exact version (also accepts arbitrary versions)
)
# Step outputs for GitHub Actions
cargo-guppy has an example of using cargo search2 in GitHub Actions to perform caching.
Why?
People often use cargo search to generate cache keys for tools. This is an easier way to achieve the same goal with a
couple more features.
In particular, it supports:
- looking for version specifiers
- producing results in both JSON and GitHub Actions formats
Contributing
Pull requests are welcome! Please follow the code of conduct.
License
This project is available under the terms of either the Apache 2.0 license or the MIT license.