## Summary This PR modifies our `Cargo.toml` files to use workspace dependencies for _all_ dependencies, rather than the status quo of sporadically trying to use workspace dependencies for those dependencies that are used across multiple crates. I find the current situation more confusing and harder to manage, since we have a mix of workspace and crate-local dependencies, whereas this setup consistently uses the same approach for all dependencies.
60 lines
1.5 KiB
TOML
60 lines
1.5 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
|
|
|
|
[[bench]]
|
|
name = "linter"
|
|
harness = false
|
|
|
|
[[bench]]
|
|
name = "lexer"
|
|
harness = false
|
|
|
|
[[bench]]
|
|
name = "parser"
|
|
harness = false
|
|
|
|
[[bench]]
|
|
name = "formatter"
|
|
harness = false
|
|
|
|
[dependencies]
|
|
once_cell = { workspace = true }
|
|
serde = { workspace = true }
|
|
serde_json = { workspace = true }
|
|
url = { workspace = true }
|
|
ureq = { workspace = true }
|
|
criterion = { workspace = true, default-features = false }
|
|
codspeed-criterion-compat = { workspace = true, default-features = false, optional = true}
|
|
|
|
[dev-dependencies]
|
|
ruff_linter = { path = "../ruff_linter" }
|
|
ruff_python_ast = { path = "../ruff_python_ast" }
|
|
ruff_python_formatter = { path = "../ruff_python_formatter" }
|
|
ruff_python_index = { path = "../ruff_python_index" }
|
|
ruff_python_parser = { path = "../ruff_python_parser" }
|
|
|
|
[lints]
|
|
workspace = true
|
|
|
|
[features]
|
|
codspeed = ["codspeed-criterion-compat"]
|
|
|
|
[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 }
|