15 lines
321 B
Rust
15 lines
321 B
Rust
|
use anyhow::Result;
|
||
|
use ructe::Ructe;
|
||
|
use vergen::EmitBuilder;
|
||
|
|
||
|
fn main() -> Result<()> {
|
||
|
EmitBuilder::builder()
|
||
|
.git_sha(true)
|
||
|
.emit()?;
|
||
|
|
||
|
let mut ructe = Ructe::from_env()?;
|
||
|
let mut statics = ructe.statics()?;
|
||
|
statics.add_files("static")?;
|
||
|
Ok(ructe.compile_templates("templates")?)
|
||
|
}
|