land_core/
version.rs

1use lazy_static::lazy_static;
2
3/// build_info returns the version information of the current build.
4pub fn build_info() -> String {
5    format!(
6        "{} ({})",
7        env!("CARGO_PKG_VERSION"),
8        env!("VERGEN_BUILD_DATE"),
9    )
10}
11
12lazy_static! {
13    pub static ref VERSION: String = build_info();
14}
15
16// get returns the version of the current build.
17pub fn get() -> &'static str {
18    &VERSION
19}