Skip to content

romnn/cargo-bumpversion

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

bumpversion

This is an improved version of the popular Python package bumpversion (now maintained under bump2version) written in Rust.

It is fully compatible with your existing configuration in .bumpversion.cfg or setup.cfg and includes both a Rust library and a command line utility, with usage instructions below.

Improvements

The main added benefit of this library is the ability to use it as a library component for your local build and deployment scripts.

Often, people tag a new release using bumpversion and push a tag into CI (e.g. GitHub actions). But what if your project requires a lot of data that is not accessible from the CI/CD host?

You could use this library to write build scripts using the pre and post hooks provided to e.g. build and package your application and upon success tag a new release to be pushed into CI for deploying the packages built.

CLI usage

You can also just use this version as a drop-in replacement for the Python bump2version.

Install it with

cargo install bumpversion

For usage instructions, please refer to the Python version.

Library usage