Av1an/av1an-cli/build.rs
redzic e2451684b8
Refactor: Better ffmpeg pipe handling + more info in --version (#389)
* Refactor: Better ffmpeg pipe handling + more info in --version

* Update dependencies
* Better documentation in `--help`
* Include git commit hash and more info in `--version`
* Add `-k` as shorthand for `--keep`
* Do not pass `ffmpeg_pipe` around everywhere
* Use macro to generate encoder bit depth functions
* Fix documentation in README

* Fix some clippy warnings
2021-10-30 14:49:26 +03:00

11 lines
314 B
Rust

use vergen::{vergen, Config, ShaKind, TimestampKind};
fn main() {
let mut config = Config::default();
*config.git_mut().sha_kind_mut() = ShaKind::Short;
*config.git_mut().commit_timestamp_kind_mut() = TimestampKind::All;
*config.build_mut().kind_mut() = TimestampKind::All;
vergen(config).unwrap();
}