2023-04-13 11:55:52 +02:00
|
|
|
use anyhow::Result;
|
|
|
|
use ructe::Ructe;
|
|
|
|
use vergen::EmitBuilder;
|
|
|
|
|
|
|
|
fn main() -> Result<()> {
|
2023-04-14 00:39:47 +02:00
|
|
|
EmitBuilder::builder()
|
|
|
|
.git_sha(true)
|
|
|
|
.git_describe(true, true, None)
|
|
|
|
.emit()?;
|
2023-04-13 11:55:52 +02:00
|
|
|
|
|
|
|
let mut ructe = Ructe::from_env()?;
|
|
|
|
let mut statics = ructe.statics()?;
|
|
|
|
statics.add_files("static")?;
|
|
|
|
Ok(ructe.compile_templates("templates")?)
|
|
|
|
}
|