From 2701609582cc41cf33830d6baaadb0529dd7bb6d Mon Sep 17 00:00:00 2001 From: Stefano Pigozzi Date: Thu, 11 Jul 2024 09:07:53 +0200 Subject: [PATCH] Display `DEBUG` as version in debug builds --- src/utils/version.rs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/utils/version.rs b/src/utils/version.rs index e017aefe..8c87a7fe 100644 --- a/src/utils/version.rs +++ b/src/utils/version.rs @@ -1,3 +1,5 @@ +#[cfg(debug_assertions)] +pub const VERSION: &str = "DEBUG"; + +#[cfg(not(debug_assertions))] pub const VERSION: &str = env!("CARGO_PKG_VERSION"); - -