cargo-syu

Crates.iocargo-syu
lib.rscargo-syu
version0.1.1
sourcesrc
created_at2024-10-15 17:57:45.395125
updated_at2024-10-16 22:35:37.663615
descriptionUpdate Rust binary crates
homepage
repositoryhttps://github.com/idealseal/cargo-syu
max_upload_size
id1409808
size46,192
(idealseal)

documentation

README

Update Rust binary crates.

Workflow Status

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
    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.

Commit count: 24

cargo fmt