Crates.io | cargo-semver-tool |
lib.rs | cargo-semver-tool |
version | 0.1.5 |
source | src |
created_at | 2023-06-30 18:07:06.288407 |
updated_at | 2024-02-13 00:09:22.640298 |
description | A cargo command to help you version your rust project similar to npm-version |
homepage | |
repository | https://github.com/ddumont/cargo-semver-tool |
max_upload_size | |
id | 904819 |
size | 41,121 |
Update the version of your rust project!
$ cargo install cargo-semver-tool
$ cargo semver --help
A cargo command to help you version your rust project similar to npm-version
Usage: cargo-semver <COMMAND>
Commands:
get Return the project's current version
bump Bump the project's version
help Print this message or the help of the given subcommand(s)
Options:
-h, --help Print help
-V, --version Print version
cargo semver get
$ cargo semver get --help
Return the project's current version
Usage: cargo-semver get
Options:
-h, --help Print help
cargo semver bump --help
Bump the project's version
Usage: cargo-semver bump [OPTIONS] [BUMP]
Arguments:
[BUMP]
[default: patch]
Possible values:
- major: Bump the major digit of the version
1.0.0 -> 2.0.0
1.1.0 -> 2.0.0
2.0.0-1 -> 2.0.0
- minor: Bump the minor digit of the version
1.0.0 -> 1.1.0
1.0.1 -> 1.1.0
1.1.0-1 -> 1.1.0
- patch: Bump the patch digit of the version
1.0.0 -> 1.0.1
1.0.0-1 -> 1.0.0
- premajor: Bump the major digit of the version as a prerelease
1.0.0 -> 2.0.0-0
2.0.0-0 -> 2.0.0-1
- preminor: Bump the minor digit of the version as a prerelease
1.0.0 -> 1.1.0-0
1.1.0-0 -> 1.1.0-1
- prepatch: Bump the patch digit of the version as a prerelease
1.0.0 -> 1.0.1-0
1.0.1-0 -> 1.0.1-1
- prerelease: Bump the prelease version, or behaves like prepatch
1.1.0 -> 1.1.1-0
1.1.1-0 -> 1.1.1-1
1.1.0-5 -> 1.1.0-6
- release: Bump the version from a prerelease, or behaves like patch
1.1.0 -> 1.1.1
1.1.1-5 -> 1.1.1
Options:
-d, --dry-run
Display only, do not write the file
-h, --help
Print help (see a summary with '-h')
License: Apache-2.0