mirror of
https://github.com/astral-sh/ruff.git
synced 2025-09-28 12:54:48 +00:00
Fix rust feature activation (#20012)
This commit is contained in:
parent
d43a3d34dd
commit
a5cbca156c
4 changed files with 12 additions and 3 deletions
|
@ -14,8 +14,11 @@ license = { workspace = true }
|
|||
doctest = false
|
||||
|
||||
[dependencies]
|
||||
ruff_text_size = { workspace = true }
|
||||
ruff_text_size = { workspace = true, features = ["get-size"] }
|
||||
|
||||
get-size2 = { workspace = true }
|
||||
is-macro = { workspace = true }
|
||||
serde = { workspace = true, optional = true, features = [] }
|
||||
|
||||
[features]
|
||||
serde = ["dep:serde", "ruff_text_size/serde"]
|
||||
|
|
|
@ -22,7 +22,7 @@ serde = { workspace = true, optional = true }
|
|||
[dev-dependencies]
|
||||
|
||||
[features]
|
||||
get-size = ["dep:get-size2"]
|
||||
get-size = ["dep:get-size2", "ruff_text_size/get-size"]
|
||||
serde = ["dep:serde", "ruff_text_size/serde"]
|
||||
|
||||
[lints]
|
||||
|
|
|
@ -64,6 +64,7 @@ default = []
|
|||
schemars = [
|
||||
"dep:schemars",
|
||||
"ruff_formatter/schemars",
|
||||
"ruff_linter/schemars",
|
||||
"ruff_python_formatter/schemars",
|
||||
"ruff_python_semantic/schemars",
|
||||
]
|
||||
|
|
|
@ -51,7 +51,12 @@ insta = { workspace = true, features = ["redactions", "ron"] }
|
|||
[features]
|
||||
default = ["zstd"]
|
||||
deflate = ["ty_vendored/deflate"]
|
||||
schemars = ["dep:schemars", "ruff_db/schemars", "ty_python_semantic/schemars"]
|
||||
schemars = [
|
||||
"dep:schemars",
|
||||
"ruff_db/schemars",
|
||||
"ruff_python_ast/schemars",
|
||||
"ty_python_semantic/schemars",
|
||||
]
|
||||
zstd = ["ty_vendored/zstd"]
|
||||
format = ["ruff_python_formatter"]
|
||||
testing = []
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue