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

## 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.
52 lines
1.5 KiB
TOML
52 lines
1.5 KiB
TOML
[package]
|
|
name = "ruff_workspace"
|
|
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 }
|
|
|
|
[lib]
|
|
|
|
[dependencies]
|
|
ruff_linter = { path = "../ruff_linter" }
|
|
ruff_formatter = { path = "../ruff_formatter" }
|
|
ruff_python_formatter = { path = "../ruff_python_formatter", features = ["serde"] }
|
|
ruff_python_ast = { path = "../ruff_python_ast" }
|
|
ruff_source_file = { path = "../ruff_source_file" }
|
|
ruff_cache = { path = "../ruff_cache" }
|
|
ruff_macros = { path = "../ruff_macros" }
|
|
|
|
anyhow = { workspace = true }
|
|
colored = { workspace = true }
|
|
dirs = { workspace = true }
|
|
ignore = { workspace = true }
|
|
is-macro = { workspace = true }
|
|
itertools = { workspace = true }
|
|
log = { workspace = true }
|
|
glob = { workspace = true }
|
|
globset = { workspace = true }
|
|
once_cell = { workspace = true }
|
|
path-absolutize = { workspace = true }
|
|
pep440_rs = { workspace = true, features = ["serde"] }
|
|
regex = { workspace = true }
|
|
rustc-hash = { workspace = true }
|
|
schemars = { workspace = true, optional = true }
|
|
serde = { workspace = true}
|
|
shellexpand = { workspace = true }
|
|
strum = { workspace = true }
|
|
toml = { workspace = true }
|
|
|
|
[dev-dependencies]
|
|
tempfile = { workspace = true }
|
|
|
|
[features]
|
|
default = []
|
|
schemars = [ "dep:schemars", "ruff_formatter/schemars", "ruff_python_formatter/schemars" ]
|
|
|
|
[lints]
|
|
workspace = true
|