I Built a Version Bump Tool in Rust That Is 10,000x Faster Than Its Python Counterparts.

rust dev.to

⬆️ Bump2version

bump2version is a multi-language version bumper written entirely in 100% safe Rust, with no_std support and native Python and Node.js bindings 🗿.

🦀 Rust 🐍 Python 🟩 Node.js
cargo add bump2version pip install bump-rs npm install bump2version
Documentation Read PYTHON.md Read NODE.md

🤔 What does this crate provide?

bump2version automates semantic version management for any project regardless of language. It:

  • Parses version strings using a fully configurable regex (default: semver major.minor.patch).
  • Bumps any named component (major, minor, patch, or custom cyclic stages).
  • Rewrites version occurrences across multiple files, including multiline CHANGELOG patterns, using (?ms) DOTALL + MULTILINE semantics identical to Python's re.MULTILINE | re.DOTALL.
  • Commits and tags via 100% pure gix (gitoxide); zero subprocess calls, zero web-flow ghost-author bugs.
  • Reads author identity from the local git config.

🦀 Rust

The Rust crate is available on crates.io For a complete API…

Source: dev.to

arrow_back Back to Tutorials