cargo-version-util

Crates.iocargo-version-util
lib.rscargo-version-util
version1.1.3
sourcesrc
created_at2022-10-06 08:16:15.410622
updated_at2024-04-23 06:20:13.525196
descriptionA small CLI utility to manipulate Cargo.toml versions
homepage
repositoryhttps://gitlab.com/secata-public/tools/cargo-version-utility.git
max_upload_size
id681089
size22,787
Jesper Gravgaard (jg-partisia)

documentation

README

Cargo Version Utility

This is a small cargo subcommand cargo version-util to manipulate Cargo.toml versions. It handles workspaces transparently.

Installation

cargo install --path .

Usage

get-version

This subcommand gets the version of the specified Cargo.toml file.

cargo version-util get-version [--manifest-path /path/to/Cargo.toml]

Note: If run in a workspace and member crates have distinct versions the get-version command fails with an error.

set-version

This subcommand sets the version for the specified Cargo.toml file.

cargo version-util set-version [--manifest-path /path/to/Cargo.toml] <VERSION>

If run in a workspace all members get the same version.

is-workspace

This subcommand checks if the specified Cargo.toml is a workspace toml.

cargo version-util is-workspace [--manifest-path /path/to/Cargo.toml]
Commit count: 67

cargo fmt