mirror of
https://github.com/comit-network/xmr-btc-swap.git
synced 2024-09-02 07:32:02 +00:00
![Thomas Eizinger](/assets/img/avatar_default.png)
For builds made directly on the tag, the output of `--version` will not change. For builds not made on a tagged commit, the output will look something like this: ``` > swap --version swap 0.7.0-117-g93161f9 ``` Fixes #409.
10 lines
218 B
Rust
10 lines
218 B
Rust
use anyhow::Result;
|
|
use vergen::{vergen, Config, SemverKind};
|
|
|
|
fn main() -> Result<()> {
|
|
let mut config = Config::default();
|
|
*config.git_mut().semver_kind_mut() = SemverKind::Lightweight;
|
|
|
|
vergen(config)
|
|
}
|