diff options
| author | 魏曹先生 <1992414357@qq.com> | 2025-12-24 14:52:28 +0800 |
|---|---|---|
| committer | 魏曹先生 <1992414357@qq.com> | 2025-12-24 15:04:40 +0800 |
| commit | 4cccc5d093bed8abbe35689c061486b79c44c558 (patch) | |
| tree | 5a0a9ba740d5edb99d1e0a8948ac728643df2cab /src/data/compile_info.rs.template | |
| parent | d9a3831673bbdca117c769a843bccd3fa97f8b14 (diff) | |
Add build script for compile info and installer generation
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(), + } + } +} |
