An easy way to update the version of your package
sh
cargo install cargo-v
You can update the version of your project using the command:
sh
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:
sh
cargo v patch
Update in Cargo.toml:
```toml [package] name = "cargo-v" version = "0.0.2"
```
will change the middle number of version:
Command:
sh
cargo v minor
Update in Cargo.toml:
```toml [package] name = "cargo-v" version = "0.1.0"
```
will change the first number of version:
Command:
sh
cargo v major
Update in Cargo.toml:
```toml [package] name = "cargo-v" version = "1.0.0"
```
will change the version with the exact entry:
Command:
sh
cargo v 1.0.1
Update in Cargo.toml:
toml
[package]
name = "cargo-v"
version = "1.0.1"
sh
cargo test
👤 Fernando Daciuk
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