2 releases
0.1.1 | Oct 16, 2024 |
---|---|
0.1.0 | Oct 15, 2024 |
#103 in Cargo plugins
336 downloads per month
23KB
479 lines
Update Rust binary crates.
Installation
cargo install --locked cargo-syu
After that, the command can update itself.
Examples
The default operation is to list and update packages.
cargo syu
Don't update packages, but list available updates.
cargo syu --list
Take git packages into consideration.
cargo syu --git
Development plan
- Find cargo install root from
~/.cargo/config.toml
. - List installed packages.
- Update installed packages.
- Find and update git packages.
- Detect registry URL from
.crates.toml
. - Print progress bar for metadata fetching.
- Improved handling of errors
- Don't fail immediately if one package operation failed.
- Display warning for failed package, but continue for remaining packages.
- Allow more or less verbose output.
- Allow printing of outdated packages only.
- Add more code documentation.
- Write unit and integration tests.
- Add --ask flag to require user confirmation before installing packages.
License
Licensed under the MIT License.
Dependencies
~15–25MB
~440K SLoC