feat(router): include git commit hash and timestamp in --version output (#29)

This commit is contained in:
Sanchith Hegde
2022-11-28 10:19:57 +05:30
committed by GitHub
parent 3e0298032b
commit cc473590cb
8 changed files with 96 additions and 69 deletions

View File

@ -0,0 +1,3 @@
fn main() {
router_env::vergen::generate_cargo_instructions();
}

View File

@ -11,6 +11,7 @@ use crate::{
};
#[derive(StructOpt, Default)]
#[structopt(version = router_env::version!())]
pub struct CmdLineConf {
/// Config file.
/// Application will look for "config/config.toml" if this option isn't specified.