5 stable releases

1.1.3 Apr 23, 2024
1.1.2 Dec 18, 2023
1.1.1 Oct 19, 2023
1.1.0 Jul 6, 2023
1.0.0 Oct 6, 2022

#1132 in Command line utilities

Download history 14/week @ 2024-10-12 15/week @ 2024-10-19 24/week @ 2024-10-26 125/week @ 2024-11-02 8/week @ 2024-11-09 25/week @ 2024-11-16 44/week @ 2024-11-23 109/week @ 2024-11-30 108/week @ 2024-12-07 82/week @ 2024-12-14 1/week @ 2024-12-21 4/week @ 2025-01-04 10/week @ 2025-01-11 18/week @ 2025-01-18 43/week @ 2025-01-25

75 downloads per month

Custom license

11KB
195 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

~2.9–4MB
~77K SLoC