mirror of https://github.com/rapiz1/rathole.git
14 lines
417 B
Rust
14 lines
417 B
Rust
use anyhow::Result;
|
|
use vergen::{vergen, Config, SemverKind};
|
|
|
|
fn main() -> Result<()> {
|
|
let mut config = Config::default();
|
|
// Change the SEMVER output to the lightweight variant
|
|
*config.git_mut().semver_kind_mut() = SemverKind::Lightweight;
|
|
// Add a `-dirty` flag to the SEMVER output
|
|
*config.git_mut().semver_dirty_mut() = Some("-dirty");
|
|
|
|
// Generate the instructions
|
|
vergen(config)
|
|
}
|