Adding git2version library as a dependency

Run this command in a terminal, in your project's directory:

cargo add git2version

To add it manually, edit your project's Cargo.toml file and add to the [dependencies] section:

git2version = "0.5.0"

The git2version library will be automatically available globally. Read the git2version library documentation.

Back to the crate overview.