Fix breaking changes in vergen
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Valentin Brandl 2021-02-26 16:12:58 +01:00
parent d9553871fa
commit 3d26823425
2 changed files with 3 additions and 3 deletions

View File

@ -2,11 +2,11 @@ extern crate ructe;
extern crate vergen; extern crate vergen;
use ructe::Ructe; use ructe::Ructe;
use vergen::{generate_cargo_keys, ConstantsFlags}; use vergen::{gen, ConstantsFlags};
fn main() { fn main() {
let flags = ConstantsFlags::SHA_SHORT; 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() Ructe::from_env()
.expect("ructe") .expect("ructe")
.compile_templates("templates") .compile_templates("templates")

View File

@ -7,7 +7,7 @@ pub struct VersionInfo<'a> {
} }
pub(crate) const VERSION_INFO: VersionInfo = VersionInfo { pub(crate) const VERSION_INFO: VersionInfo = VersionInfo {
commit: env!("VERGEN_SHA_SHORT"), commit: env!("VERGEN_GIT_SHA_SHORT"),
version: env!("CARGO_PKG_VERSION"), version: env!("CARGO_PKG_VERSION"),
}; };
pub(crate) const CSS: &str = include_str!("../static/tacit-css.min.css"); pub(crate) const CSS: &str = include_str!("../static/tacit-css.min.css");