mirror of
https://github.com/astral-sh/ruff.git
synced 2025-08-03 10:22:24 +00:00

**Summary** Some files seems notoriously slow in the formatter (secons in debug mode). This time was however almost exclusively spent in the diff algorithm to collect the similarity index, so i replaced that. I kept `similar` for printing actual diff to avoid rewriting that too, with the disadvantage that we now have to diff libraries in format_dev. I used this PR to remove the spinner from tracing-indicatif and changed `flamegraph --perfdata perf.data` to `flamegraph --perfdata perf.data --no-inline` as the former wouldn't finish for me on release builds with debug info.
54 lines
1.7 KiB
TOML
54 lines
1.7 KiB
TOML
[package]
|
|
name = "ruff_dev"
|
|
version = "0.0.0"
|
|
publish = false
|
|
authors = { workspace = true }
|
|
edition = { workspace = true }
|
|
rust-version = { workspace = true }
|
|
homepage = { workspace = true }
|
|
documentation = { workspace = true }
|
|
repository = { workspace = true }
|
|
license = { workspace = true }
|
|
|
|
[dependencies]
|
|
ruff = { path = "../ruff", features = ["schemars"] }
|
|
ruff_cli = { path = "../ruff_cli" }
|
|
ruff_diagnostics = { path = "../ruff_diagnostics" }
|
|
ruff_formatter = { path = "../ruff_formatter" }
|
|
ruff_python_ast = { path = "../ruff_python_ast" }
|
|
ruff_python_codegen = { path = "../ruff_python_codegen" }
|
|
ruff_python_formatter = { path = "../ruff_python_formatter" }
|
|
ruff_python_literal = { path = "../ruff_python_literal" }
|
|
ruff_python_parser = { path = "../ruff_python_parser" }
|
|
ruff_python_stdlib = { path = "../ruff_python_stdlib" }
|
|
ruff_python_trivia = { path = "../ruff_python_trivia" }
|
|
|
|
anyhow = { workspace = true }
|
|
clap = { workspace = true }
|
|
ignore = { workspace = true }
|
|
indicatif = "0.17.5"
|
|
itertools = { workspace = true }
|
|
libcst = { workspace = true }
|
|
once_cell = { workspace = true }
|
|
pretty_assertions = { version = "1.3.0" }
|
|
rayon = "1.7.0"
|
|
regex = { workspace = true }
|
|
schemars = { workspace = true }
|
|
serde = { workspace = true, features = ["derive"] }
|
|
serde_json = { workspace = true }
|
|
similar = { workspace = true }
|
|
strum = { workspace = true }
|
|
strum_macros = { workspace = true }
|
|
tempfile = "3.6.0"
|
|
toml = { workspace = true, features = ["parse"] }
|
|
tracing = { workspace = true }
|
|
tracing-indicatif = { workspace = true }
|
|
tracing-subscriber = { workspace = true, features = ["env-filter"] }
|
|
imara-diff = "0.1.5"
|
|
|
|
[features]
|
|
# Turn off rayon for profiling
|
|
singlethreaded = []
|
|
|
|
[dev-dependencies]
|
|
indoc = "2.0.3"
|