4 releases

0.1.3 Jan 23, 2025
0.1.2 Jan 23, 2025
0.1.1 Oct 16, 2024
0.1.0 Oct 15, 2024

#124 in Cargo plugins

Download history 5/week @ 2024-10-22 5/week @ 2024-10-29 19/week @ 2024-11-05 225/week @ 2025-01-21 6/week @ 2025-01-28 22/week @ 2025-02-04

253 downloads per month

MIT license

20KB
407 lines

Update Rust binary crates

Workflow Status Crates.io Version

Installation

cargo install --locked cargo-syu

After that, the command can update itself.

Usage

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
    1. Don't fail immediately if one package operation failed.
    2. 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

~18–29MB
~506K SLoC