Skip to content

Commit a5cbca1

Browse files
authored
Fix rust feature activation (#20012)
1 parent d43a3d3 commit a5cbca1

File tree

4 files changed

+12
-3
lines changed

4 files changed

+12
-3
lines changed

crates/ruff_diagnostics/Cargo.toml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,11 @@ license = { workspace = true }
1414
doctest = false
1515

1616
[dependencies]
17-
ruff_text_size = { workspace = true }
17+
ruff_text_size = { workspace = true, features = ["get-size"] }
1818

1919
get-size2 = { workspace = true }
2020
is-macro = { workspace = true }
2121
serde = { workspace = true, optional = true, features = [] }
22+
23+
[features]
24+
serde = ["dep:serde", "ruff_text_size/serde"]

crates/ruff_source_file/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ serde = { workspace = true, optional = true }
2222
[dev-dependencies]
2323

2424
[features]
25-
get-size = ["dep:get-size2"]
25+
get-size = ["dep:get-size2", "ruff_text_size/get-size"]
2626
serde = ["dep:serde", "ruff_text_size/serde"]
2727

2828
[lints]

crates/ruff_workspace/Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@ default = []
6464
schemars = [
6565
"dep:schemars",
6666
"ruff_formatter/schemars",
67+
"ruff_linter/schemars",
6768
"ruff_python_formatter/schemars",
6869
"ruff_python_semantic/schemars",
6970
]

crates/ty_project/Cargo.toml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,12 @@ insta = { workspace = true, features = ["redactions", "ron"] }
5151
[features]
5252
default = ["zstd"]
5353
deflate = ["ty_vendored/deflate"]
54-
schemars = ["dep:schemars", "ruff_db/schemars", "ty_python_semantic/schemars"]
54+
schemars = [
55+
"dep:schemars",
56+
"ruff_db/schemars",
57+
"ruff_python_ast/schemars",
58+
"ty_python_semantic/schemars",
59+
]
5560
zstd = ["ty_vendored/zstd"]
5661
format = ["ruff_python_formatter"]
5762
testing = []

0 commit comments

Comments
 (0)