Fix breaking changes in vergen
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
d9553871fa
commit
3d26823425
4
build.rs
4
build.rs
@ -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")
|
||||||
|
@ -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");
|
||||||
|
Loading…
Reference in New Issue
Block a user