From c03d9aefa1b937c913300ab8770677fe20076440 Mon Sep 17 00:00:00 2001 From: Boshen Date: Sun, 15 Mar 2026 22:22:56 +0800 Subject: [PATCH] chore: run cargo shear --fix and disable unused doctests/tests Co-Authored-By: Claude Opus 4.6 (1M context) --- crates/vite_command/Cargo.toml | 3 +++ crates/vite_error/Cargo.toml | 4 ++++ crates/vite_install/Cargo.toml | 3 +++ crates/vite_migration/Cargo.toml | 3 +++ crates/vite_static_config/Cargo.toml | 3 +++ 5 files changed, 16 insertions(+) diff --git a/crates/vite_command/Cargo.toml b/crates/vite_command/Cargo.toml index 1fda50979e..7c16a6be46 100644 --- a/crates/vite_command/Cargo.toml +++ b/crates/vite_command/Cargo.toml @@ -23,3 +23,6 @@ tokio = { workspace = true, features = ["macros", "test-util"] } [lints] workspace = true + +[lib] +doctest = false diff --git a/crates/vite_error/Cargo.toml b/crates/vite_error/Cargo.toml index 5a8b3d3730..b24538caf0 100644 --- a/crates/vite_error/Cargo.toml +++ b/crates/vite_error/Cargo.toml @@ -30,3 +30,7 @@ reqwest = { workspace = true, features = ["stream", "native-tls-vendored", "json [target.'cfg(not(target_os = "windows"))'.dependencies] reqwest = { workspace = true, features = ["stream", "rustls-tls", "json"] } + +[lib] +test = false +doctest = false diff --git a/crates/vite_install/Cargo.toml b/crates/vite_install/Cargo.toml index ab712dce8f..8267c3396d 100644 --- a/crates/vite_install/Cargo.toml +++ b/crates/vite_install/Cargo.toml @@ -46,3 +46,6 @@ test-log = { workspace = true } [lints] workspace = true + +[lib] +doctest = false diff --git a/crates/vite_migration/Cargo.toml b/crates/vite_migration/Cargo.toml index d0ad72ac28..325f0a120e 100644 --- a/crates/vite_migration/Cargo.toml +++ b/crates/vite_migration/Cargo.toml @@ -21,3 +21,6 @@ tempfile = { workspace = true } [lints] workspace = true + +[lib] +doctest = false diff --git a/crates/vite_static_config/Cargo.toml b/crates/vite_static_config/Cargo.toml index ae9569923d..bb3c3056a7 100644 --- a/crates/vite_static_config/Cargo.toml +++ b/crates/vite_static_config/Cargo.toml @@ -21,3 +21,6 @@ tempfile = { workspace = true } [lints] workspace = true + +[lib] +doctest = false