mirror of
https://github.com/master-of-zen/Av1an.git
synced 2024-11-24 01:58:53 +00:00
8d06b92b98
* Update dependencies and fix new clippy lints * Fix select chunk method breakage in ffmpeg 7
22 lines
539 B
Rust
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(())
|
|
}
|