From 00a9e65d001082972f9c83ce8f405046985a26c6 Mon Sep 17 00:00:00 2001 From: David Peter Date: Mon, 22 Sep 2025 16:04:56 +0200 Subject: [PATCH] Fix 'cargo shear' runs (#20514) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ## Summary Previous error: ``` ▶ cargo shear Analyzing /home/shark/ruff ruff_diagnostics -- crates/ruff_diagnostics/Cargo.toml: get-size2 ruff_index -- crates/ruff_index/Cargo.toml: get-size2 ruff_source_file -- crates/ruff_source_file/Cargo.toml: get-size2 ruff_text_size -- crates/ruff_text_size/Cargo.toml: get-size2 ty_ide -- crates/ty_ide/Cargo.toml: get-size2 ty_project -- crates/ty_project/Cargo.toml: get-size2 cargo-shear may have detected unused dependencies incorrectly due to its limitations. They can be ignored by adding the crate name to the package's Cargo.toml: [package.metadata.cargo-shear] ignored = ["crate-name"] or in the workspace Cargo.toml: [workspace.metadata.cargo-shear] ignored = ["crate-name"] ``` --- Cargo.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Cargo.toml b/Cargo.toml index 9d3963b9e6..3dd863ee99 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -203,7 +203,7 @@ wild = { version = "2" } zip = { version = "0.6.6", default-features = false } [workspace.metadata.cargo-shear] -ignored = ["getrandom", "ruff_options_metadata", "uuid"] +ignored = ["getrandom", "ruff_options_metadata", "uuid", "get-size2"] [workspace.lints.rust]