From 3d2682342534f4e8ba9d533b9588e45e5a87c73f Mon Sep 17 00:00:00 2001 From: Valentin Brandl Date: Fri, 26 Feb 2021 16:12:58 +0100 Subject: [PATCH] Fix breaking changes in vergen --- build.rs | 4 ++-- src/statics.rs | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/build.rs b/build.rs index bf5680e..831db6b 100644 --- a/build.rs +++ b/build.rs @@ -2,11 +2,11 @@ extern crate ructe; extern crate vergen; use ructe::Ructe; -use vergen::{generate_cargo_keys, ConstantsFlags}; +use vergen::{gen, ConstantsFlags}; fn main() { let flags = ConstantsFlags::SHA_SHORT; - generate_cargo_keys(flags).expect("Unable to generate the cargo keys!"); + gen(flags).expect("Unable to generate the cargo keys!"); Ructe::from_env() .expect("ructe") .compile_templates("templates") diff --git a/src/statics.rs b/src/statics.rs index 387fdc6..0f6f3ed 100644 --- a/src/statics.rs +++ b/src/statics.rs @@ -7,7 +7,7 @@ pub struct VersionInfo<'a> { } pub(crate) const VERSION_INFO: VersionInfo = VersionInfo { - commit: env!("VERGEN_SHA_SHORT"), + commit: env!("VERGEN_GIT_SHA_SHORT"), version: env!("CARGO_PKG_VERSION"), }; pub(crate) const CSS: &str = include_str!("../static/tacit-css.min.css");