From 23a9d70d57e6292a250953188a77f2e4c104690c Mon Sep 17 00:00:00 2001 From: Thomas Lamprecht Date: Wed, 22 May 2024 18:58:41 +0200 Subject: [PATCH] build config: add constant for full cargo crate version and a todo comment to document some cleanup potential Signed-off-by: Thomas Lamprecht --- pbs-buildcfg/src/lib.rs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/pbs-buildcfg/src/lib.rs b/pbs-buildcfg/src/lib.rs index 3311d277..8ce2f7e5 100644 --- a/pbs-buildcfg/src/lib.rs +++ b/pbs-buildcfg/src/lib.rs @@ -1,5 +1,11 @@ //! Exports configuration data from the build system +pub const PROXMOX_BACKUP_CRATE_VERSION: &str = env!("CARGO_PKG_VERSION"); + +// TODO: clean-up, drop the RELEASE one, should not be required on its own and if it would be just +// the X.Y part, also add the Debian package revision (extracted through build.rs) in an existing +// or new constant. + pub const PROXMOX_PKG_VERSION: &str = concat!( env!("CARGO_PKG_VERSION_MAJOR"), ".",