1
0
mirror of https://github.com/containers/youki synced 2024-11-29 21:11:29 +01:00
youki/crates/youki/build.rs
Toru Komatsu 1180637c41
Rust 1.80.0 (#2869)
Signed-off-by: utam0k <k0ma@utam0k.jp>
2024-08-12 16:50:14 -07:00

17 lines
469 B
Rust

use anyhow::Result;
use vergen_gitcl::{Emitter, GitclBuilder};
pub fn main() -> Result<()> {
if Emitter::default()
.add_instructions(&GitclBuilder::all_git()?)?
.emit()
.is_err()
{
// currently we only inject git sha, so just this
// else we will need to think of more elegant way to check
// what failed, and what needs to be added
println!("cargo:rustc-env=VERGEN_GIT_SHA=unknown");
}
Ok(())
}