mirror of
https://github.com/ankitects/anki.git
synced 2025-09-20 06:52:21 -04:00
24 lines
581 B
Rust
24 lines
581 B
Rust
// Copyright: Ankitects Pty Ltd and contributors
|
|
// License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
|
|
|
|
use lazy_static::lazy_static;
|
|
|
|
pub fn version() -> &'static str {
|
|
include_str!("../../meta/version").trim()
|
|
}
|
|
|
|
pub fn buildhash() -> &'static str {
|
|
include_str!("../../meta/buildhash")
|
|
}
|
|
|
|
pub(crate) fn sync_client_version() -> &'static str {
|
|
lazy_static! {
|
|
static ref VER: String = format!(
|
|
"anki,{} ({}),{}",
|
|
version(),
|
|
buildhash(),
|
|
std::env::consts::OS
|
|
);
|
|
}
|
|
&VER
|
|
}
|