hoc/build.rs
Valentin Brandl 5f29a3edfa
All checks were successful
continuous-integration/drone/push Build is passing
Don't unwrap results in build step
2022-02-17 12:01:50 +01:00

13 lines
369 B
Rust

extern crate ructe;
extern crate vergen;
use ructe::{Ructe, RucteError};
use vergen::{vergen, Config, ShaKind};
fn main() -> Result<(), RucteError> {
let mut config = Config::default();
*config.git_mut().sha_kind_mut() = ShaKind::Short;
vergen(config).expect("Unable to generate static repo info");
Ructe::from_env()?.compile_templates("templates")
}