summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author魏曹先生 <1992414357@qq.com>2026-03-15 02:19:12 +0800
committer魏曹先生 <1992414357@qq.com>2026-03-15 02:19:12 +0800
commitd942ec50ff68f36c2641becdd6f32a95ab3f4325 (patch)
tree4d63c9e3df1683a0d6dbdad3f5d6be2f71d0938d
parente7115911f81a2ae5ac5f8afdf7a121d803ae47af (diff)
Add serde as a dependency and derive Serialize for CoreCompileInfo
-rw-r--r--Cargo.lock1
-rw-r--r--Cargo.toml2
-rw-r--r--src/data/compile_info.rs.template1
3 files changed, 4 insertions, 0 deletions
diff --git a/Cargo.lock b/Cargo.lock
index cf651ce..a231b6c 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -991,6 +991,7 @@ dependencies = [
"framework",
"hex_display",
"jvlib",
+ "serde",
"sha1_hash",
"sheet_system",
"tcp_connection",
diff --git a/Cargo.toml b/Cargo.toml
index 1ec6c84..3fa49b9 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -142,3 +142,5 @@ workspace_system = { path = "systems/workspace" }
vcs_data = { path = "legacy_data" }
vcs_actions = { path = "legacy_actions" }
action_system = { path = "legacy_systems/action" }
+
+serde.workspace = true
diff --git a/src/data/compile_info.rs.template b/src/data/compile_info.rs.template
index 78a475b..6bf5ac5 100644
--- a/src/data/compile_info.rs.template
+++ b/src/data/compile_info.rs.template
@@ -1,3 +1,4 @@
+#[derive(serde::Serialize)]
pub struct CoreCompileInfo {
pub date: String,
pub target: String,