mirror of
https://github.com/astral-sh/ruff.git
synced 2025-09-29 13:24:57 +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
|
doctest = false
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
ruff_text_size = { workspace = true }
|
ruff_text_size = { workspace = true, features = ["get-size"] }
|
||||||
|
|
||||||
get-size2 = { workspace = true }
|
get-size2 = { workspace = true }
|
||||||
is-macro = { workspace = true }
|
is-macro = { workspace = true }
|
||||||
serde = { workspace = true, optional = true, features = [] }
|
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]
|
[dev-dependencies]
|
||||||
|
|
||||||
[features]
|
[features]
|
||||||
get-size = ["dep:get-size2"]
|
get-size = ["dep:get-size2", "ruff_text_size/get-size"]
|
||||||
serde = ["dep:serde", "ruff_text_size/serde"]
|
serde = ["dep:serde", "ruff_text_size/serde"]
|
||||||
|
|
||||||
[lints]
|
[lints]
|
||||||
|
|
|
@ -64,6 +64,7 @@ default = []
|
||||||
schemars = [
|
schemars = [
|
||||||
"dep:schemars",
|
"dep:schemars",
|
||||||
"ruff_formatter/schemars",
|
"ruff_formatter/schemars",
|
||||||
|
"ruff_linter/schemars",
|
||||||
"ruff_python_formatter/schemars",
|
"ruff_python_formatter/schemars",
|
||||||
"ruff_python_semantic/schemars",
|
"ruff_python_semantic/schemars",
|
||||||
]
|
]
|
||||||
|
|
|
@ -51,7 +51,12 @@ insta = { workspace = true, features = ["redactions", "ron"] }
|
||||||
[features]
|
[features]
|
||||||
default = ["zstd"]
|
default = ["zstd"]
|
||||||
deflate = ["ty_vendored/deflate"]
|
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"]
|
zstd = ["ty_vendored/zstd"]
|
||||||
format = ["ruff_python_formatter"]
|
format = ["ruff_python_formatter"]
|
||||||
testing = []
|
testing = []
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue