1
Fork 0
mirror of https://github.com/RYGhub/royalnet.git synced 2024-11-25 20:44:21 +00:00

Display DEBUG as version in debug builds

This commit is contained in:
Steffo 2024-07-11 09:07:53 +02:00
parent b59374e1a8
commit 2701609582
Signed by: steffo
GPG key ID: 5ADA3868646C3FC0

View file

@ -1,3 +1,5 @@
#[cfg(debug_assertions)]
pub const VERSION: &str = "DEBUG";
#[cfg(not(debug_assertions))]
pub const VERSION: &str = env!("CARGO_PKG_VERSION"); pub const VERSION: &str = env!("CARGO_PKG_VERSION");