cargo-tag

Crates.iocargo-tag
lib.rscargo-tag
version0.1.10
created_at2023-05-14 03:13:40.297124+00
updated_at2025-12-28 00:42:46.950784+00
descriptionCargo plugin to bump crate's versions and Git tag them for release
homepagehttps://github.com/LeoBorai/cargo-tag
repositoryhttps://github.com/LeoBorai/cargo-tag
max_upload_size
id864054
size37,398
Leo Borai (LeoBorai)

documentation

https://github.com/LeoBorai/cargo-tag

README

cargo tag

Cargo plugin to bump crate's versions and Git tag them for release

Crates.io Documentation Build Clippy Formatter

Cargo plugin to bump crate's versions and Git tag them for release.

"cargo tag" helps to automate the process of bumping versions similar to how "npm version" does.

When bumping versions with "cargo tag", the Cargo.toml and Cargo.lock files are updated with the new version, then a Git commit and a Git tag are both created.

Bump crate's version and create a Git tag

Usage: cargo tag [OPTIONS] <COMMAND>

Commands:
  current
          Print current package version
  minor
          Bumps crate's minor version and create a git tag
  major
          Bumps crate's major version and create a git tag
  patch
          Bumps crate's patch version and create a git tag
  prerelease
          Sets the provided prerelease string and create a git tag
  help
          Print this message or the help of the given subcommand(s)

Options:
  -p, --prefix <PREFIX>
          Prefix string for Git tags
      --no-commit
          Skip creating a Git commit
      --no-tag
          Skip creating a Git tag
      --env
          Get name and email from environment variables CARGO_TAG_NAME and CARGO_TAG_EMAIL. They must be set beforehand
      --dry-run
          Generate tag without writing files or creating git commits/tags
  -h, --help
          Print help

Installation

cargo install cargo-tag

Requires Git to be installed in your system.

Using:

cargo tag patch
# or
cargo tag -p=v patch

Contributing

Every contribution to this project is welcome. Feel free to open a pull request, an issue or just by starting this project.

License

Distributed under the terms of both the MIT license

Commit count: 0

cargo fmt