mirror of
https://github.com/sxyazi/yazi.git
synced 2026-05-13 08:16:40 +00:00
13 lines
334 B
Rust
13 lines
334 B
Rust
use std::{env, error::Error};
|
|
|
|
use vergen_gitcl::{Emitter, GitclBuilder};
|
|
|
|
fn main() -> Result<(), Box<dyn Error>> {
|
|
if env::var_os("YAZI_NO_GITCL").is_none() {
|
|
Emitter::default().add_instructions(&GitclBuilder::default().sha(true).build()?)?.emit()?;
|
|
} else {
|
|
println!("cargo:rustc-env=VERGEN_GIT_SHA=no-gitcl");
|
|
}
|
|
|
|
Ok(())
|
|
}
|