From d9ca11834e6fa4454231198f98f6403ff4280ca2 Mon Sep 17 00:00:00 2001 From: Crozet Sébastien Date: Fri, 22 Jan 2021 16:10:53 +0100 Subject: Add a VERSION constant containing the package version. --- src/lib.rs | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/lib.rs') diff --git a/src/lib.rs b/src/lib.rs index 476f537..3fce79f 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -127,6 +127,8 @@ pub(crate) const INVALID_U32: u32 = u32::MAX; pub(crate) const INVALID_U64: u64 = u64::MAX; pub(crate) const INVALID_USIZE: usize = INVALID_U32 as usize; +pub const VERSION: &'static str = env!("CARGO_PKG_VERSION"); + pub mod counters; pub mod data; pub mod dynamics; -- cgit