[build-dependencies.rustversion]
version = "1.0.14"
[dependencies.anyhow]
version = "1.0.72"
[dependencies.cargo_metadata]
optional = true
version = "0.18.1"
[dependencies.cfg-if]
optional = true
version = "1.0.0"
[dependencies.git2-rs]
default-features = false
optional = true
package = "git2"
version = "0.19.0"
[dependencies.gix]
default-features = false
features = ["revision", "interrupt"]
optional = true
version = "0.63.0"
[dependencies.regex]
optional = true
version = "1.9.1"
[dependencies.rustc_version]
optional = true
version = "0.4.0"
[dependencies.sysinfo]
default-features = false
optional = true
version = "0.30.4"
[dependencies.time]
features = ["formatting", "local-offset", "parsing"]
optional = true
version = "0.3.23"
[dev-dependencies.gix]
version = "0.63.0"
[dev-dependencies.lazy_static]
version = "1.4.0"
[dev-dependencies.regex]
version = "1.9.1"
[dev-dependencies.serial_test]
version = "3.0.0"
[dev-dependencies.temp-env]
version = "0.3.6"
[features]
build = ["time"]
cargo = ["cargo_metadata", "regex"]
default = []
git = ["cfg-if"]
git2 = ["time", "git2-rs"]
gitcl = ["time"]
gitoxide = ["time", "gix"]
rustc = ["rustc_version"]
si = ["sysinfo"]
unstable = []
[lib]
name = "vergen"
path = "src/lib.rs"
[package]
authors = ["Jason Ozias <jason.g.ozias@gmail.com>"]
autobenches = false
autobins = false
autoexamples = false
autotests = false
build = "build.rs"
categories = ["development-tools", "development-tools::build-utils"]
description = "Generate 'cargo:rustc-env' instructions via 'build.rs' for use in your code via the 'env!' macro"
documentation = "https://docs.rs/vergen"
edition = "2021"
homepage = "https://github.com/rustyhorde/vergen"
keywords = ["cargo", "instructions", "build", "tool"]
license = "MIT OR Apache-2.0"
name = "vergen"
readme = "README.md"
repository = "https://github.com/rustyhorde/vergen"
version = "8.3.2"
[package.metadata.cargo-all-features]
denylist = ["cargo_metadata", "cfg-if", "git", "git2", "git2-rs", "gitcl", "gix", "gitoxide", "regex", "rustc_version", "sysinfo", "time", "unstable"]
[package.metadata.docs.rs]
features = ["build", "cargo", "git", "gitcl", "rustc", "si"]
rustdoc-args = ["--cfg", "docsrs"]
[[test]]
name = "build_output"
path = "tests/build_output.rs"
[[test]]
name = "cargo_output"
path = "tests/cargo_output.rs"
[[test]]
name = "git_output"
path = "tests/git_output.rs"
[[test]]
name = "rustc_output"
path = "tests/rustc_output.rs"
[[test]]
name = "sysinfo_output"
path = "tests/sysinfo_output.rs"