cargo-verset

Crates.iocargo-verset
lib.rscargo-verset
version0.3.2
created_at2025-01-01 20:36:15.807167+00
updated_at2025-12-07 20:53:30.28705+00
descriptionA cargo plugin to change the version of a package in the Cargo.toml file
homepage
repositoryhttps://github.com/bircni/cargo-verset
max_upload_size
id1501067
size42,917
Nicolas (bircni)

documentation

README

cargo-verset

Crates.io MIT licensed CI

cargo-verset is a tool to change the version in your Cargo.toml file.

Installation

cargo install cargo-verset

or with cargo binstall:

cargo binstall cargo-verset

Usage

Usage: cargo-verset <COMMAND>

Commands:
  package     Set the version of the package in a Cargo.toml file
  dependency  Set the version of a dependency in a Cargo.toml file
  help        Print this message or the help of the given subcommand(s)

Options:
  -h, --help     Print help
  -V, --version  Print version

Examples

Change package version

cargo verset package --ver 1.2.3

Sets the version of the package in the current Cargo.toml to 1.2.3.

With a path to another Cargo.toml:

cargo verset package --ver 2.0.0 --path ./some/crate

Dry run (shows the change without saving):

cargo verset package --ver 1.2.3 --dry-run

Change dependency version

cargo verset dependency --name serde --ver 1.0.200

Sets the version of the dependency serde to 1.0.200 in the current Cargo.toml.

With registry and path:

cargo verset dependency --name serde --ver 1.0.200 --registry crates-io --path ./some/crate

Dry run:

cargo verset dependency --name serde --ver 1.0.200 --dry-run
Commit count: 16

cargo fmt