2

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.

Cornelius Roemer
  • 3,772
  • 1
  • 24
  • 55

1 Answers1

4

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

Cornelius Roemer
  • 3,772
  • 1
  • 24
  • 55
  • 1
    To add more info, cargo-edit provides `cargo add` `cargo rm` `cargo upgrade` `cargo set-version`. Cargo now supports cargo add in latest version, so that package might not that much helpful in future :) Also, this might be helpful https://github.com/killercup/cargo-edit/issues/700 – Shirshak55 May 23 '22 at 11:47