2019-04-23 18:19:54 +02:00
|
|
|
extern crate ructe;
|
|
|
|
extern crate vergen;
|
|
|
|
|
|
|
|
use ructe::Ructe;
|
2021-03-29 12:38:29 +02:00
|
|
|
use vergen::{vergen, Config, ShaKind};
|
2019-04-23 18:19:54 +02:00
|
|
|
|
|
|
|
fn main() {
|
2021-03-29 12:38:29 +02:00
|
|
|
let mut config = Config::default();
|
|
|
|
*config.git_mut().sha_kind_mut() = ShaKind::Short;
|
|
|
|
vergen(config).expect("Unable to generate static repo info");
|
2019-04-23 18:19:54 +02:00
|
|
|
Ructe::from_env()
|
|
|
|
.expect("ructe")
|
2019-04-23 22:31:25 +02:00
|
|
|
.compile_templates("templates")
|
|
|
|
.unwrap();
|
2019-04-23 18:19:54 +02:00
|
|
|
}
|