mirror of
https://github.com/astral-sh/ruff.git
synced 2025-11-01 20:31:57 +00:00
Some checks are pending
CI / Determine changes (push) Waiting to run
CI / cargo fmt (push) Waiting to run
CI / cargo clippy (push) Blocked by required conditions
CI / cargo test (linux) (push) Blocked by required conditions
CI / cargo test (linux, release) (push) Blocked by required conditions
CI / cargo test (windows) (push) Blocked by required conditions
CI / cargo test (wasm) (push) Blocked by required conditions
CI / cargo build (release) (push) Waiting to run
CI / cargo build (msrv) (push) Blocked by required conditions
CI / cargo fuzz build (push) Blocked by required conditions
CI / fuzz parser (push) Blocked by required conditions
CI / test scripts (push) Blocked by required conditions
CI / ecosystem (push) Blocked by required conditions
CI / Fuzz for new ty panics (push) Blocked by required conditions
CI / cargo shear (push) Blocked by required conditions
CI / python package (push) Waiting to run
CI / pre-commit (push) Waiting to run
CI / mkdocs (push) Waiting to run
CI / formatter instabilities and black similarity (push) Blocked by required conditions
CI / test ruff-lsp (push) Blocked by required conditions
CI / check playground (push) Blocked by required conditions
CI / benchmarks-instrumented (push) Blocked by required conditions
CI / benchmarks-walltime (push) Blocked by required conditions
[ty Playground] Release / publish (push) Waiting to run
90 lines
2.4 KiB
TOML
90 lines
2.4 KiB
TOML
[package]
|
|
name = "ruff_benchmark"
|
|
version = "0.0.0"
|
|
description = "Ruff Micro-benchmarks"
|
|
publish = false
|
|
authors = { workspace = true }
|
|
edition = { workspace = true }
|
|
rust-version = { workspace = true }
|
|
homepage = { workspace = true }
|
|
documentation = { workspace = true }
|
|
repository = { workspace = true }
|
|
license = { workspace = true }
|
|
|
|
[lib]
|
|
bench = false
|
|
test = false
|
|
doctest = false
|
|
|
|
[[bench]]
|
|
name = "linter"
|
|
harness = false
|
|
required-features = ["instrumented"]
|
|
|
|
[[bench]]
|
|
name = "lexer"
|
|
harness = false
|
|
required-features = ["instrumented"]
|
|
|
|
[[bench]]
|
|
name = "parser"
|
|
harness = false
|
|
required-features = ["instrumented"]
|
|
|
|
[[bench]]
|
|
name = "formatter"
|
|
harness = false
|
|
required-features = ["instrumented"]
|
|
|
|
[[bench]]
|
|
name = "ty"
|
|
harness = false
|
|
required-features = ["instrumented"]
|
|
|
|
[[bench]]
|
|
name = "ty_walltime"
|
|
harness = false
|
|
required-features = ["walltime"]
|
|
|
|
[dependencies]
|
|
ruff_db = { workspace = true, features = ["testing"] }
|
|
ruff_python_ast = { workspace = true }
|
|
ruff_linter = { workspace = true, optional = true }
|
|
ruff_python_formatter = { workspace = true, optional = true }
|
|
ruff_python_parser = { workspace = true, optional = true }
|
|
ruff_python_trivia = { workspace = true, optional = true }
|
|
ty_project = { workspace = true, optional = true }
|
|
|
|
divan = { workspace = true, optional = true }
|
|
anyhow = { workspace = true }
|
|
codspeed-criterion-compat = { workspace = true, default-features = false, optional = true }
|
|
criterion = { workspace = true, default-features = false, optional = true }
|
|
rayon = { workspace = true }
|
|
rustc-hash = { workspace = true }
|
|
serde = { workspace = true }
|
|
serde_json = { workspace = true }
|
|
tracing = { workspace = true }
|
|
|
|
[lints]
|
|
workspace = true
|
|
|
|
[features]
|
|
default = ["instrumented", "walltime"]
|
|
# Enables the benchmark that should only run with codspeed's instrumented runner
|
|
instrumented = [
|
|
"criterion",
|
|
"ruff_linter",
|
|
"ruff_python_formatter",
|
|
"ruff_python_parser",
|
|
"ruff_python_trivia",
|
|
"ty_project",
|
|
]
|
|
codspeed = ["codspeed-criterion-compat"]
|
|
# Enables benchmark that should only run with codspeed's walltime runner.
|
|
walltime = ["ruff_db/os", "ty_project", "divan"]
|
|
|
|
[target.'cfg(target_os = "windows")'.dev-dependencies]
|
|
mimalloc = { workspace = true }
|
|
|
|
[target.'cfg(all(not(target_os = "windows"), not(target_os = "openbsd"), any(target_arch = "x86_64", target_arch = "aarch64", target_arch = "powerpc64")))'.dev-dependencies]
|
|
tikv-jemallocator = { workspace = true }
|