mangadex-home-rs/build.rs

13 lines
267 B
Rust
Raw Normal View History

2021-07-12 05:34:37 +00:00
use std::error::Error;
2021-06-06 21:48:48 +00:00
2021-06-06 22:17:42 +00:00
use vergen::{vergen, Config, ShaKind};
2021-06-06 21:48:48 +00:00
fn main() -> Result<(), Box<dyn Error>> {
2021-07-09 21:32:00 +00:00
// Initialize vergen stuff
2021-06-06 22:17:42 +00:00
let mut config = Config::default();
*config.git_mut().sha_kind_mut() = ShaKind::Short;
vergen(config)?;
2021-07-09 21:32:00 +00:00
2021-06-06 21:48:48 +00:00
Ok(())
}