1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
#[derive(serde::Serialize)]
pub struct CoreCompileInfo {
pub date: String,
pub target: String,
pub platform: String,
pub toolchain: String,
pub vcs_version: String,
pub build_branch: String,
pub build_commit: String,
}
impl Default for CoreCompileInfo {
fn default() -> Self {
Self {
date: "{date}".to_string(),
target: "{target}".to_string(),
platform: "{platform}".to_string(),
toolchain: "{toolchain}".to_string(),
vcs_version: "{version}".to_string(),
build_branch: "{branch}".to_string(),
build_commit: "{commit}".to_string(),
}
}
}
|