An easy way to update the version of your package
🏠 Homepage
cargo install cargo-v
You can update the version of your project using the command:
cargo v patch
The above command will update the patch
part of version from your Cargo.toml
,
it will run cargo build
to update Cargo.lock
file, and create a commit and
a git tag with the new version, if you are using git.
You can use four options to update the version: patch
, minor
, major
or a
manually typed version (like 1.0.1
).
will change the latest number of version:
Command:
cargo v patch
Update in Cargo.toml:
[package]
name = "cargo-v"
version = "0.0.2"
# ^ This number will be updated
will change the middle number of version:
Command:
cargo v minor
Update in Cargo.toml:
[package]
name = "cargo-v"
version = "0.1.0"
# ^ This number will be updated
will change the first number of version:
Command:
cargo v major
Update in Cargo.toml:
[package]
name = "cargo-v"
version = "1.0.0"
# ^ This number will be updated
will change the version with the exact entry:
Command:
cargo v 1.0.1
Update in Cargo.toml:
[package]
name = "cargo-v"
version = "1.0.1"
cargo test
👤 Fernando Daciuk
- Website: https://daciuk.dev
- Twitter: @fdaciuk
- Github: @fdaciuk
- LinkedIn: @fdaciuk
Contributions, issues and feature requests are welcome!
Feel free to check issues page.
Give a ⭐️ if this project helped you!
Copyright © 2022 Fernando Daciuk.
This project is MIT licensed.
This README was generated with ❤️ by readme-md-generator