aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFuwn <[email protected]>2023-05-29 04:53:48 +0000
committerFuwn <[email protected]>2023-05-29 04:53:48 +0000
commitaa5da4cd3f296bbf8ca0581eaff70cb58ae05aa6 (patch)
treed2d6515aec4fcd02f2996f1cfa40e7cd0d55e3ec
parentdeps(log): bump logging dependencies (diff)
downloadseptember-aa5da4cd3f296bbf8ca0581eaff70cb58ae05aa6.tar.xz
september-aa5da4cd3f296bbf8ca0581eaff70cb58ae05aa6.zip
deps(vergen): bump
-rw-r--r--Cargo.toml4
-rw-r--r--build.rs6
2 files changed, 7 insertions, 3 deletions
diff --git a/Cargo.toml b/Cargo.toml
index 447016e..c46aaf4 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -37,8 +37,8 @@ dotenv = "0.15.0"
url = "2.3.1"
[build-dependencies]
-# Environment Variables
-vergen = "7.0.0"
+# Compile-time Environment Variables
+vergen = { version = "8.2.1", features = ["git", "gitoxide"] }
# `Result`
anyhow = "1.0.56"
diff --git a/build.rs b/build.rs
index 3a31cf4..ea4287b 100644
--- a/build.rs
+++ b/build.rs
@@ -16,4 +16,8 @@
// Copyright (C) 2022-2022 Fuwn <[email protected]>
// SPDX-License-Identifier: GPL-3.0-only
-fn main() -> anyhow::Result<()> { vergen::vergen(vergen::Config::default()) }
+fn main() -> Result<(), Box<dyn std::error::Error>> {
+ vergen::EmitBuilder::builder().git_sha(true).emit()?;
+
+ Ok(())
+}