summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/data.rs2
-rw-r--r--src/data/compile_info.rs.template20
-rw-r--r--src/lib.rs3
3 files changed, 25 insertions, 0 deletions
diff --git a/src/data.rs b/src/data.rs
new file mode 100644
index 0000000..036fd98
--- /dev/null
+++ b/src/data.rs
@@ -0,0 +1,2 @@
+#[allow(dead_code)]
+pub mod compile_info;
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(),
+ }
+ }
+}
diff --git a/src/lib.rs b/src/lib.rs
index 6d94067..361fb8c 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -1,3 +1,6 @@
+/// Data
+pub mod data;
+
// Feature `vcs`
#[cfg(feature = "vcs")]
pub mod vcs {