fabro/lib/apps/fabro-server/build.rs
2026-07-23 17:59:34 -04:00

17 lines
542 B
Rust

use std::path::Path;
fn main() {
let metadata = fabro_build_support::collect_from(Path::new("."));
for path in metadata.rerun_paths {
println!("cargo:rerun-if-changed={}", path.display());
}
println!("cargo:rustc-env=FABRO_GIT_SHA={}", metadata.short_sha);
let build_date = chrono::Utc::now().format("%Y-%m-%d").to_string();
println!("cargo:rustc-env=FABRO_BUILD_DATE={build_date}");
let profile = fabro_build_support::cargo_profile();
println!("cargo:rustc-env=FABRO_BUILD_PROFILE={profile}");
}