From fac4e1d34b200e49e24b9a77eff802d21b96c628 Mon Sep 17 00:00:00 2001 From: branchseer Date: Sat, 14 Feb 2026 16:49:54 +0800 Subject: [PATCH] fix: ts-rs warnings --- crates/vite_str/Cargo.toml | 2 +- crates/vite_task_graph/Cargo.toml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/vite_str/Cargo.toml b/crates/vite_str/Cargo.toml index 7159106c..ffa3b5db 100644 --- a/crates/vite_str/Cargo.toml +++ b/crates/vite_str/Cargo.toml @@ -11,7 +11,7 @@ bincode = { workspace = true } compact_str = { workspace = true, features = ["serde"] } diff-struct = { workspace = true } serde = { workspace = true, features = ["derive"] } -ts-rs = { workspace = true, optional = true } +ts-rs = { workspace = true, optional = true, features = ["no-serde-warnings"] } [features] ts-rs = ["dep:ts-rs"] diff --git a/crates/vite_task_graph/Cargo.toml b/crates/vite_task_graph/Cargo.toml index 90c4c05c..9d0332cb 100644 --- a/crates/vite_task_graph/Cargo.toml +++ b/crates/vite_task_graph/Cargo.toml @@ -24,7 +24,7 @@ vite_workspace = { workspace = true } [dev-dependencies] pretty_assertions = { workspace = true } -ts-rs = { workspace = true } +ts-rs = { workspace = true, features = ["no-serde-warnings"] } vite_path = { workspace = true, features = ["ts-rs"] } vite_str = { workspace = true, features = ["ts-rs"] } which = { workspace = true }