How to install the command "cargo set-version"?

1.7k Views Asked by At

I'm trying to run a script that requires the cargo subcommand cargo set-version --workspace --bump="${2:-}".

How do I install it?

Google results only returned cargo install set-cargo-version but that is actually a different crate, not the one I need here, as I found out after installing.

1

There are 1 best solutions below

1
On BEST ANSWER

Searching for set-version on cargo.io I discovered that the crate cargo-edit installs the subcommand cargo set-version.

Installation works as follows:

cargo install cargo-edit

As @Shirshak55 mentioned: cargo-edit provides cargo add, cargo rm, cargo upgrade, cargo set-version