aboutsummaryrefslogtreecommitdiff
path: root/src/lib.rs
diff options
context:
space:
mode:
authorCrozet Sébastien <developer@crozet.re>2021-01-22 16:10:53 +0100
committerCrozet Sébastien <developer@crozet.re>2021-01-22 16:10:53 +0100
commitd9ca11834e6fa4454231198f98f6403ff4280ca2 (patch)
tree66d2cf58a7919295ea9ec4c7d8e4f9e71915c810 /src/lib.rs
parentcf52e01308cefcce71b9914c539641cb7530b22c (diff)
downloadrapier-d9ca11834e6fa4454231198f98f6403ff4280ca2.tar.gz
rapier-d9ca11834e6fa4454231198f98f6403ff4280ca2.tar.bz2
rapier-d9ca11834e6fa4454231198f98f6403ff4280ca2.zip
Add a VERSION constant containing the package version.
Diffstat (limited to 'src/lib.rs')
-rw-r--r--src/lib.rs2
1 files changed, 2 insertions, 0 deletions
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;