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");