| Crates.io | cargo-version-upgrade |
| lib.rs | cargo-version-upgrade |
| version | 1.0.6 |
| created_at | 2024-12-24 17:54:24.789762+00 |
| updated_at | 2024-12-26 09:57:16.656399+00 |
| description | semantic version management |
| homepage | |
| repository | https://github.com/DOLPHIN-SOFTWARE-TECH/cargo-version-upgrade.git |
| max_upload_size | |
| id | 1494163 |
| size | 22,227 |
cargo-version-upgrade is a Rust library designed for managing semantic versioning in Rust projects. It provides an easy-to-use CLI to update versions in your Cargo.toml file based on semantic versioning rules.
0.0.1 → 0.0.2).0.0.5 → 0.1.0).1.0.4 → 2.0.0).beta, alpha, etc., to any version update.To install the library, use the following command:
cargo install cargo-version-upgrade
The CLI provides several commands to manage versions. Below is an overview of the available commands and their effects:
Patch:
Increment the patch version.
cargo-version-upgrade patch
Example: 0.0.4 → 0.0.5
Minor:
Increment the minor version and reset the patch version.
cargo-version-upgrade minor
Example: 0.0.4 → 0.1.0
Major:
Increment the major version and reset the minor and patch versions.
cargo-version-upgrade major
Example: 0.0.4 → 1.0.0
Patch with Tags:
Increment the patch version and append a pre-release tag.
cargo-version-upgrade patch --tags <tagname>
Examples:
0.0.4 → 0.0.5-tagname.00.0.5-tagname.0 → 0.0.6-tagname.0Minor with Tags:
Increment the minor version, reset the patch version, and append a pre-release tag.
cargo-version-upgrade minor --tags <tagname>
Examples:
0.0.4 → 0.1.0-tagname.00.0.4-tagname.0 → 0.1.0-tagname.0Major with Tags:
Increment the major version, reset the minor and patch versions, and append a pre-release tag.
cargo-version-upgrade major --tags <tagname>
Examples:
0.0.4 → 1.0.0-tagname.00.0.4-tagname.0 → 1.0.0-tagname.0cargo-version-upgrade pre
Examples:
0.0.4 → Error: No tag present0.0.4-tagname.0 → 0.0.4-tagname.10.4.4-tagname.4 → 0.4.4-tagname.5