mirror of
https://github.com/astral-sh/ruff
synced 2026-01-22 05:51:03 -05:00
This PR productionizes @MichaReiser's suggestion in https://github.com/charliermarsh/ruff/issues/1820#issuecomment-1440204423, by creating a separate crate for the `ast` module (`rust_python_ast`). This will enable us to further split up the `ruff` crate, as we'll be able to create (e.g.) separate sub-linter crates that have access to these common AST utilities. This was mostly a straightforward copy (with adjustments to module imports), as the few dependencies that _did_ require modifications were handled in #3366, #3367, and #3368.
28 lines
741 B
TOML
28 lines
741 B
TOML
[package]
|
|
name = "ruff_python_ast"
|
|
version = "0.0.0"
|
|
publish = false
|
|
edition = { workspace = true }
|
|
rust-version = { workspace = true }
|
|
|
|
[lib]
|
|
|
|
[dependencies]
|
|
ruff_python_stdlib = { path = "../ruff_python_stdlib" }
|
|
ruff_rustpython = { path = "../ruff_rustpython" }
|
|
|
|
anyhow = { workspace = true }
|
|
bitflags = { workspace = true }
|
|
is-macro = { workspace = true }
|
|
itertools = { workspace = true }
|
|
log = { workspace = true }
|
|
nohash-hasher = { version = "0.2.0" }
|
|
num-bigint = { version = "0.4.3" }
|
|
num-traits = { version = "0.2.15" }
|
|
once_cell = { workspace = true }
|
|
regex = { workspace = true }
|
|
rustc-hash = { workspace = true }
|
|
rustpython-common = { workspace = true }
|
|
rustpython-parser = { workspace = true }
|
|
smallvec = { version = "1.10.0" }
|