summaryrefslogtreecommitdiff
path: root/src/data/compile_info.rs.template
blob: 78a475b32a7f9ab00ecbf43bb64586df18d83c35 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
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(),
        }
    }
}