mirror of
https://github.com/RYGhub/royalnet.git
synced 2024-11-25 12:34:19 +00:00
Display DEBUG
as version in debug builds
This commit is contained in:
parent
b59374e1a8
commit
2701609582
1 changed files with 4 additions and 2 deletions
|
@ -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");
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue