diff options
Diffstat (limited to 'src/data/compile_info.rs.template')
| -rw-r--r-- | src/data/compile_info.rs.template | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/src/data/compile_info.rs.template b/src/data/compile_info.rs.template new file mode 100644 index 0000000..21909eb --- /dev/null +++ b/src/data/compile_info.rs.template @@ -0,0 +1,20 @@ +pub struct CoreCompileInfo { + pub date: String, + pub target: String, + pub platform: String, + pub toolchain: String, + + pub vcs_version: 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(), + } + } +} |
