From 31b3e9767647402278b57d95e4cd415e4c3e5013 Mon Sep 17 00:00:00 2001 From: antifallobst Date: Fri, 13 Oct 2023 01:16:08 +0200 Subject: [PATCH] feat: changed version number log to read version from cargo metadata --- src/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.rs b/src/main.rs index d338d90..af02ad1 100644 --- a/src/main.rs +++ b/src/main.rs @@ -12,7 +12,7 @@ use sqlx::postgres::PgPool; async fn main() -> Result<()> { env_logger::Builder::from_env(env_logger::Env::default().default_filter_or("info")).init(); - info!("Starting NerdcultAPI v0.1"); + info!("Starting Nerdcult API v{}", env!("CARGO_PKG_VERSION")); let port: u16 = 8080;