[dependencies.git2]
optional = true
version = "^0.20"
[dependencies.konst]
version = "^0.4"
[dependencies.serde]
features = ["derive"]
version = "^1.0.103"
[dev-dependencies.git2]
version = "^0.20"
[dev-dependencies.rand]
version = "^0.9"
[dev-dependencies.serde_json]
version = "^1.0"
[dev-dependencies.tempdir]
version = "^0.3.4"
[features]
build = ["dep:git2"]
default = []
[lib]
name = "git2version"
path = "src/lib.rs"
[package]
authors = ["Sebastian Messmer <messmer@cryfs.org>"]
autobenches = false
autobins = false
autoexamples = false
autolib = false
autotests = false
build = false
categories = ["development-tools", "development-tools::build-utils"]
description = "This crate provides a way to get the version of the package from git and incorporate it as a constant into your program."
documentation = "https://docs.rs/git2version"
edition = "2024"
keywords = ["git", "version", "build"]
license = "MIT OR Apache-2.0"
name = "git2version"
readme = "README.md"
repository = "https://github.com/smessmer/git2version"
rust-version = "1.89"
version = "0.5.0"
[[test]]
name = "git2version"
path = "tests/git2version.rs"