From 040f6464804a6c28c2353b166e2217277316f248 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E5=BE=B7=E5=AE=87?= Date: Tue, 15 Sep 2026 19:53:06 +0800 Subject: [PATCH] =?UTF-8?q?=E7=BB=9F=E4=B8=80=20ts-rs=20workspace=20?= =?UTF-8?q?=E4=BE=9D=E8=B5=96=E7=89=88=E6=9C=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 在 server-rs workspace 集中声明 ts-rs 版本。 shared-contracts 通过 workspace 依赖引用可选 ts-rs。 --- server-rs/Cargo.toml | 1 + server-rs/crates/shared-contracts/Cargo.toml | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/server-rs/Cargo.toml b/server-rs/Cargo.toml index 05310ccac..45e78c939 100644 --- a/server-rs/Cargo.toml +++ b/server-rs/Cargo.toml @@ -105,6 +105,7 @@ serde_json = "1" serde_urlencoded = "0.7" sha1 = "0.10" sha2 = "0.10" +ts-rs = "12.0.1" socket2 = "0.6" symphonia = { version = "0.5", default-features = false, features = ["mp3"] } spacetimedb = "=2.8.3" diff --git a/server-rs/crates/shared-contracts/Cargo.toml b/server-rs/crates/shared-contracts/Cargo.toml index 012b86c9a..2a8a00e61 100644 --- a/server-rs/crates/shared-contracts/Cargo.toml +++ b/server-rs/crates/shared-contracts/Cargo.toml @@ -15,5 +15,5 @@ kind-observability = ["dep:tracing"] serde = { workspace = true } serde_json = { workspace = true } sha2 = { workspace = true } -ts-rs = { version = "12.0.1", optional = true } +ts-rs = { workspace = true, optional = true } tracing = { workspace = true, optional = true }