mirror of https://github.com/astral-sh/ruff
Fix 'cargo shear' runs (#20514)
## 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"] ```
This commit is contained in:
parent
0c7cfd2a8d
commit
00a9e65d00
|
|
@ -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]
|
||||
|
|
|
|||
Loading…
Reference in New Issue