#upgrade #cargo #update #command #global #command-line-tool

bin+lib cargo-upgrade-command

Tiny cli utility to update all globally installed cargo crates

4 releases (2 breaking)

0.3.0 Mar 5, 2023
0.2.0 Feb 25, 2023
0.1.1 Feb 25, 2023
0.1.0 Feb 25, 2023

#33 in #upgrade

25 downloads per month

MIT license

610KB
254 lines

Cargo Upgrade

This tool is designed to help you upgrade your globally installed cargo binaries to the latest version.

Installation

cargo install cargo-upgrade-command

Available Commands

cargo upgrade

This command will upgrade all of your globally installed cargo binaries to the latest version.

upgrade.gif

cargo upgrade --outdated

This command will show you if any of your globally installed cargo binaries are out of date.

alias: cargo upgrade -o or cargo upgrade o or cargo upgrade list

outdated.gif

How it works

To get outdated binaries, it will parse cargo install --list and then compare the version of each crate with the version in cargo search <crate> --limit=1.

Then if upgrading, it will run cargo install --locked <crate>.

Dependencies

~0.1–9MB
~52K SLoC