#cargo-toml #cargo-version #tool #cargo-workspace #development #command-line-tool #cli

app cargo-version-util

A small CLI utility to manipulate Cargo.toml versions

4 stable releases

1.1.2 Dec 18, 2023
1.1.1 Oct 19, 2023
1.1.0 Jul 6, 2023
1.0.0 Oct 6, 2022

#789 in Command line utilities

Download history 9/week @ 2023-12-22 2/week @ 2023-12-29 3/week @ 2024-01-05 12/week @ 2024-01-12 56/week @ 2024-01-19 21/week @ 2024-01-26 32/week @ 2024-02-02 45/week @ 2024-02-09 49/week @ 2024-02-16 36/week @ 2024-02-23 36/week @ 2024-03-01 13/week @ 2024-03-08 18/week @ 2024-03-15 4/week @ 2024-03-22 34/week @ 2024-03-29 116/week @ 2024-04-05

175 downloads per month

Custom license

11KB
191 lines

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]

Dependencies

~3–4MB
~78K SLoC