mascarpone/build.rs

24 lines
669 B
Rust
Raw Permalink Normal View History

2025-12-01 15:23:56 -06:00
use cache_bust::CacheBust;
2026-04-07 11:09:14 -05:00
use vergen_gitcl::{BuildBuilder, Emitter, GitclBuilder};
2025-12-01 15:23:56 -06:00
2025-11-28 17:05:06 -06:00
fn main() {
println!("cargo:rerun-if-changed=migrations");
2025-12-01 15:23:56 -06:00
let cache_bust = CacheBust::builder()
.in_dir("static".to_owned())
.out_dir("hashed_static".to_owned())
.build();
cache_bust.hash_dir().expect("Cache busting failed");
2026-04-07 11:09:14 -05:00
let build = BuildBuilder::all_build().expect("build information failed");
let gitcl = GitclBuilder::all_git().expect("gitcl information failed");
Emitter::default()
.add_instructions(&build)
.unwrap()
.add_instructions(&gitcl)
.unwrap()
.emit()
.unwrap();
2025-11-28 17:05:06 -06:00
}