Get the server version number from Cargo.toml

This commit is contained in:
a1ecbr0wn 2023-08-18 09:28:58 +01:00
parent b17875deb0
commit 7e39d08de6
No known key found for this signature in database
GPG Key ID: EE02902D43749D92

View File

@ -8,7 +8,7 @@ use veilid_core::{TypedKeyGroup, TypedSecretGroup};
fn do_clap_matches(default_config_path: &OsStr) -> Result<clap::ArgMatches, clap::Error> { fn do_clap_matches(default_config_path: &OsStr) -> Result<clap::ArgMatches, clap::Error> {
let matches = Command::new("veilid-server") let matches = Command::new("veilid-server")
.version("0.1") .version(cargo_version!())
.about("Veilid Server") .about("Veilid Server")
.color(clap::ColorChoice::Auto) .color(clap::ColorChoice::Auto)
.arg( .arg(