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

@ -34,6 +34,9 @@ async fn main() -> ApplicationResult<()> {
conf.validate()
.expect("Failed to validate router configuration");
#[cfg(feature = "vergen")]
println!("Starting router (Version: {})", router_env::git_tag!());
let _guard = router_env::setup(
&conf.log,
router_env::service_name!(),