diff --git a/Cargo.lock b/Cargo.lock index 2dd2f266b5..980f2233f8 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1821,7 +1821,6 @@ dependencies = [ "dashmap", "hashbrown 0.14.5", "indexmap", - "log", "notify", "parking_lot", "rayon", @@ -1829,10 +1828,8 @@ dependencies = [ "ruff_notebook", "ruff_python_ast", "ruff_python_parser", - "ruff_python_trivia", "ruff_text_size", "rustc-hash", - "smallvec", "smol_str", "tempfile", "textwrap", @@ -2200,7 +2197,6 @@ version = "0.0.0" dependencies = [ "aho-corasick", "bitflags 2.5.0", - "insta", "is-macro", "itertools 0.12.1", "once_cell", @@ -2348,7 +2344,6 @@ dependencies = [ name = "ruff_python_trivia" version = "0.0.0" dependencies = [ - "insta", "itertools 0.12.1", "ruff_source_file", "ruff_text_size", diff --git a/Cargo.toml b/Cargo.toml index fe931df70f..e4df04aa50 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -37,7 +37,6 @@ drop_bomb = { version = "0.1.5" } env_logger = { version = "0.11.0" } fern = { version = "0.6.1" } filetime = { version = "0.2.23" } -fs-err = { version = "2.11.0" } glob = { version = "0.3.1" } globset = { version = "0.4.14" } hashbrown = "0.14.3" diff --git a/crates/red_knot/Cargo.toml b/crates/red_knot/Cargo.toml index 382d7d3062..48ba23638f 100644 --- a/crates/red_knot/Cargo.toml +++ b/crates/red_knot/Cargo.toml @@ -14,31 +14,28 @@ license.workspace = true [dependencies] ruff_python_parser = { path = "../ruff_python_parser" } ruff_python_ast = { path = "../ruff_python_ast" } -ruff_python_trivia = { path = "../ruff_python_trivia" } ruff_text_size = { path = "../ruff_text_size" } ruff_index = { path = "../ruff_index" } ruff_notebook = { path = "../ruff_notebook" } anyhow = { workspace = true } bitflags = { workspace = true } -ctrlc = "3.4.4" crossbeam = { workspace = true } +ctrlc = { version = "3.4.4" } dashmap = { workspace = true } hashbrown = { workspace = true } indexmap = { workspace = true } -log = { workspace = true } notify = { workspace = true } parking_lot = { workspace = true } rayon = { workspace = true } rustc-hash = { workspace = true } -smallvec = { workspace = true } -smol_str = "0.2.1" +smol_str = { version = "0.2.1" } tracing = { workspace = true } tracing-subscriber = { workspace = true } tracing-tree = { workspace = true } [dev-dependencies] -textwrap = "0.16.1" +textwrap = { version = "0.16.1" } tempfile = { workspace = true } [lints] diff --git a/crates/ruff/Cargo.toml b/crates/ruff/Cargo.toml index 8c8ea148f8..ba7feedb36 100644 --- a/crates/ruff/Cargo.toml +++ b/crates/ruff/Cargo.toml @@ -68,6 +68,10 @@ insta-cmd = { workspace = true } tempfile = { workspace = true } test-case = { workspace = true } +[package.metadata.cargo-shear] +# Used via macro expansion. +ignored = ["chrono"] + [target.'cfg(target_os = "windows")'.dependencies] mimalloc = { workspace = true } diff --git a/crates/ruff_formatter/Cargo.toml b/crates/ruff_formatter/Cargo.toml index f05b2ca7fc..2d63809a5e 100644 --- a/crates/ruff_formatter/Cargo.toml +++ b/crates/ruff_formatter/Cargo.toml @@ -25,6 +25,10 @@ unicode-width = { workspace = true } [dev-dependencies] +[package.metadata.cargo-shear] +# Used via `CacheKey` macro expansion. +ignored = ["ruff_cache"] + [features] serde = ["dep:serde", "ruff_text_size/serde"] schemars = ["dep:schemars", "ruff_text_size/schemars"] diff --git a/crates/ruff_python_ast/Cargo.toml b/crates/ruff_python_ast/Cargo.toml index 675deb7b2e..bea44148d4 100644 --- a/crates/ruff_python_ast/Cargo.toml +++ b/crates/ruff_python_ast/Cargo.toml @@ -25,9 +25,6 @@ once_cell = { workspace = true } rustc-hash = { workspace = true } serde = { workspace = true, optional = true } -[dev-dependencies] -insta = { workspace = true } - [features] serde = ["dep:serde", "ruff_text_size/serde"] diff --git a/crates/ruff_python_formatter/Cargo.toml b/crates/ruff_python_formatter/Cargo.toml index ccb8a4262b..88b22abf54 100644 --- a/crates/ruff_python_formatter/Cargo.toml +++ b/crates/ruff_python_formatter/Cargo.toml @@ -11,7 +11,7 @@ repository = { workspace = true } license = { workspace = true } [lib] -doctest= false +doctest = false [dependencies] ruff_cache = { path = "../ruff_cache" } @@ -49,6 +49,10 @@ serde = { workspace = true } serde_json = { workspace = true } similar = { workspace = true } +[package.metadata.cargo-shear] +# Used via `CacheKey` macro expansion. +ignored = ["ruff_cache"] + [[test]] name = "ruff_python_formatter_fixtures" path = "tests/fixtures.rs" diff --git a/crates/ruff_python_trivia/Cargo.toml b/crates/ruff_python_trivia/Cargo.toml index 98d5b60220..eb570f77c7 100644 --- a/crates/ruff_python_trivia/Cargo.toml +++ b/crates/ruff_python_trivia/Cargo.toml @@ -19,8 +19,5 @@ ruff_source_file = { path = "../ruff_source_file" } itertools = { workspace = true } unicode-ident = { workspace = true } -[dev-dependencies] -insta = { workspace = true } - [lints] workspace = true diff --git a/crates/ruff_workspace/Cargo.toml b/crates/ruff_workspace/Cargo.toml index dc1a346741..2def14d5e5 100644 --- a/crates/ruff_workspace/Cargo.toml +++ b/crates/ruff_workspace/Cargo.toml @@ -47,6 +47,10 @@ toml = { workspace = true } ruff_linter = { path = "../ruff_linter", features = ["clap", "test-rules"] } tempfile = { workspace = true } +[package.metadata.cargo-shear] +# Used via macro expansion. +ignored = ["colored"] + [features] default = [] schemars = ["dep:schemars", "ruff_formatter/schemars", "ruff_python_formatter/schemars"]