blob: db3d9db5d30b69036492e8144f1b34f83602eb2e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
/// 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 is_beta_version() -> bool {
mullvad_version::VERSION.contains("beta")
}
pub fn is_dev_version() -> bool {
mullvad_version::VERSION.contains("dev")
}
pub fn log_version() {
log::info!(
"Starting {} - {} {}",
env!("CARGO_PKG_NAME"),
mullvad_version::VERSION,
COMMIT_DATE,
)
}
|