[package]
authors = ["Jason Ozias <jason.g.ozias@gmail.com>"]
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"
resolver = "2"
version = "7.4.3"
[package.metadata.cargo-all-features]
denylist = ["local_offset","time","git2","rustc_version","sysinfo"]
[features]
default = ["build", "cargo", "git", "rustc", "si"]
build = ["time"]
cargo = []
git = ["time", "git2"]
rustc = ["rustc_version"]
si = ["sysinfo"]
local_offset = ["time/local-offset"]
[dependencies]
anyhow = "1.0.60"
cfg-if = "1.0.0"
enum-iterator = "~1.1.3"
getset = "0.1.2"
git2 = { version = "0.14.4", optional = true, default-features = false }
rustc_version = { version = "0.4.0", optional = true }
sysinfo = { version = "0.26.0", optional = true, default-features = false }
thiserror = "1.0.32"
time = { version = "0.3.12", features = ["formatting"], optional = true }
[build-dependencies]
anyhow = "1.0.60"
time = { version = "0.3.12", features = ["formatting"] }
rustversion = "1.0.9"
[dev-dependencies]
lazy_static = "1.4.0"
regex = "1.6.0"
serial_test = "0.9.0"
tempfile = "3.3.0"