mirror of
https://github.com/astral-sh/ruff.git
synced 2025-07-07 21:25:08 +00:00

Gates all uses of `get-size2` behind the feature `get-size` in the crate `ruff_python_ast`. Also requires that `ruff_text_size` is pulled in with the feature `get-size` enabled if we enable the same-named feature for `ruff_python_ast`.
54 lines
1.3 KiB
TOML
54 lines
1.3 KiB
TOML
[package]
|
|
name = "ruff_python_ast"
|
|
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_cache = { workspace = true, optional = true }
|
|
ruff_macros = { workspace = true, optional = true }
|
|
ruff_python_trivia = { workspace = true }
|
|
ruff_source_file = { workspace = true }
|
|
ruff_text_size = { workspace = true }
|
|
|
|
aho-corasick = { workspace = true }
|
|
bitflags = { workspace = true }
|
|
compact_str = { workspace = true }
|
|
get-size2 = { workspace = true, optional = true }
|
|
is-macro = { workspace = true }
|
|
itertools = { workspace = true }
|
|
memchr = { workspace = true }
|
|
rustc-hash = { workspace = true }
|
|
salsa = { workspace = true, optional = true }
|
|
schemars = { workspace = true, optional = true }
|
|
serde = { workspace = true, optional = true }
|
|
thiserror = { workspace = true }
|
|
|
|
[features]
|
|
schemars = ["dep:schemars"]
|
|
cache = ["dep:ruff_cache", "dep:ruff_macros"]
|
|
serde = [
|
|
"dep:serde",
|
|
"ruff_text_size/serde",
|
|
"dep:ruff_cache",
|
|
"compact_str/serde",
|
|
]
|
|
get-size = [
|
|
"dep:get-size2",
|
|
"ruff_text_size/get-size"
|
|
]
|
|
|
|
[lints]
|
|
workspace = true
|
|
|
|
[package.metadata.cargo-shear]
|
|
# Used via `CacheKey` macro expansion.
|
|
ignored = ["ruff_cache"]
|