blob: 72c28144ff3d8b39aa08dae86005ab03e146312c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
/// A string that identifies the current version of the application
pub const PRODUCT_VERSION: &str = include_str!(concat!(env!("OUT_DIR"), "/product-version.txt"));
/// Contains the date of the git commit this was built from
pub const COMMIT_DATE: &str = include_str!(concat!(env!("OUT_DIR"), "/git-commit-date.txt"));
pub fn log_version() {
log::info!(
"Starting {} - {} {}",
env!("CARGO_PKG_NAME"),
PRODUCT_VERSION,
COMMIT_DATE,
)
}
|