mirror of
https://github.com/MercuryWorkshop/epoxy-tls.git
synced 2025-05-12 14:00:01 -04:00
16 lines
369 B
Rust
16 lines
369 B
Rust
use std::error::Error;
|
|
|
|
use vergen_git2::{Emitter, Git2Builder, RustcBuilder};
|
|
|
|
fn main() -> Result<(), Box<dyn Error>> {
|
|
let rustc = RustcBuilder::default()
|
|
.semver(true)
|
|
.host_triple(true)
|
|
.build()?;
|
|
let git = Git2Builder::default().sha(true).dirty(true).build()?;
|
|
Emitter::new()
|
|
.add_instructions(&rustc)?
|
|
.add_instructions(&git)?
|
|
.emit()?;
|
|
Ok(())
|
|
}
|