aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFuwn <[email protected]>2023-03-28 19:29:16 -0700
committerFuwn <[email protected]>2023-03-28 19:29:16 -0700
commitf3654286a982bc5807d6c3d25a4a45c2e89858f0 (patch)
treea32a70d5288e2092bb05441c4c94d1a3bada4b45
parentrefactor(tags): lockup name (diff)
downloadlocus-f3654286a982bc5807d6c3d25a4a45c2e89858f0.tar.xz
locus-f3654286a982bc5807d6c3d25a4a45c2e89858f0.zip
deps(vergen): 7.0.0 -> 8.0.0
-rw-r--r--Cargo.toml6
-rw-r--r--build.rs6
2 files changed, 8 insertions, 4 deletions
diff --git a/Cargo.toml b/Cargo.toml
index 7322f11..6edfccd 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -40,6 +40,8 @@ dotenv = "0.15.0" # .env File Support
once_cell = "1.13.1" # Lazy Statics
[build-dependencies]
-vergen = "7.0.0" # Compile-time Environment Variables
+vergen = { version = "8.0.0", features = [
+ "git",
+ "gitoxide"
+] } # Compile-time Environment Variables
yarte = "0.15.6" # Templating Engine
-anyhow = "1.0.56" # `Result`
diff --git a/build.rs b/build.rs
index 84c6abd..040db89 100644
--- a/build.rs
+++ b/build.rs
@@ -16,7 +16,9 @@
// Copyright (C) 2022-2022 Fuwn <[email protected]>
// SPDX-License-Identifier: GPL-3.0-only
-fn main() -> anyhow::Result<()> {
+fn main() -> Result<(), Box<dyn std::error::Error>> {
yarte::recompile::when_changed();
- vergen::vergen(vergen::Config::default())
+ vergen::EmitBuilder::builder().git_sha(true).emit()?;
+
+ Ok(())
}