Av1an/av1an/build.rs
Josh Holmer 8d06b92b98
Fix everything breaking the CI (#864)
* Update dependencies and fix new clippy lints

* Fix select chunk method breakage in ffmpeg 7
2024-08-10 08:13:50 +03:00

22 lines
539 B
Rust

use std::error::Error;
use vergen_git2::{CargoBuilder, Emitter, Git2Builder, RustcBuilder};
fn main() -> Result<(), Box<dyn Error>> {
let git2 = Git2Builder::default().sha(true).commit_date(true).build()?;
let cargo = CargoBuilder::default()
.debug(true)
.target_triple(true)
.build()?;
let rustc = RustcBuilder::default()
.semver(true)
.llvm_version(true)
.build()?;
Emitter::default()
.add_instructions(&git2)?
.add_instructions(&cargo)?
.add_instructions(&rustc)?
.emit()?;
Ok(())
}