summaryrefslogtreecommitdiff
path: root/templates/compile_info.rs.template
diff options
context:
space:
mode:
Diffstat (limited to 'templates/compile_info.rs.template')
-rw-r--r--templates/compile_info.rs.template24
1 files changed, 24 insertions, 0 deletions
diff --git a/templates/compile_info.rs.template b/templates/compile_info.rs.template
new file mode 100644
index 0000000..b65055b
--- /dev/null
+++ b/templates/compile_info.rs.template
@@ -0,0 +1,24 @@
+pub struct CompileInfo {
+ pub date: String,
+ pub target: String,
+ pub platform: String,
+ pub toolchain: String,
+
+ pub cli_version: String,
+ pub build_branch: String,
+ pub build_commit: String,
+}
+
+impl Default for CompileInfo {
+ fn default() -> Self {
+ Self {
+ date: "{date}".to_string(),
+ target: "{target}".to_string(),
+ platform: "{platform}".to_string(),
+ toolchain: "{toolchain}".to_string(),
+ cli_version: "{version}".to_string(),
+ build_branch: "{branch}".to_string(),
+ build_commit: "{commit}".to_string(),
+ }
+ }
+}