feat: include version number in response headers and on application startup (#3045)

This commit is contained in:
Sanchith Hegde
2024-01-05 17:32:36 +05:30
committed by GitHub
parent c8279b110e
commit 252443a50d
6 changed files with 30 additions and 4 deletions

View File

@ -167,3 +167,13 @@ macro_rules! profile {
env!("CARGO_PROFILE")
};
}
/// The latest git tag. If tags are not present in the repository, the short commit hash is used
/// instead. Refer to the [`git describe`](https://git-scm.com/docs/git-describe) documentation for
/// more details.
#[macro_export]
macro_rules! git_tag {
() => {
env!("VERGEN_GIT_DESCRIBE")
};
}