hoc/build.rs

15 lines
320 B
Rust
Raw Normal View History

2019-04-23 18:19:54 +02:00
extern crate ructe;
extern crate vergen;
use ructe::Ructe;
2021-02-26 16:12:58 +01:00
use vergen::{gen, ConstantsFlags};
2019-04-23 18:19:54 +02:00
fn main() {
let flags = ConstantsFlags::SHA_SHORT;
2021-02-26 16:12:58 +01:00
gen(flags).expect("Unable to generate the cargo keys!");
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
}