Skip to content

Commit de398d0

Browse files
Jeong YunWonyouknowone
authored andcommitted
Strip unpublished dependencies for the 0.16.5 crates.io release
Only the five rustpython-ruff_* crates are published. ruff_python_ast drops its optional ruff_cache, ruff_macros and salsa dependencies along with the cache and salsa features; the serde feature stays but no longer pulls ruff_cache. Workspace crates that requested cache or salsa stop doing so. ruff_annotate_snippets loses its version requirement so cargo drops it from the published parser dev-dependencies. Assisted-by: Claude Code:claude-fable-5-1
1 parent df59fe4 commit de398d0

7 files changed

Lines changed: 11 additions & 14 deletions

File tree

Cargo.lock

Lines changed: 0 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ license = "MIT"
1515
[workspace.dependencies]
1616
char_str = { version = "0.0.2" }
1717
ruff = { version = "0.16.5", path = "crates/ruff" }
18-
ruff_annotate_snippets = { version = "0.0.11", path = "crates/ruff_annotate_snippets" }
18+
ruff_annotate_snippets = { path = "crates/ruff_annotate_snippets" }
1919
ruff_cache = { version = "0.0.11", path = "crates/ruff_cache" }
2020
ruff_db = { version = "0.0.11", path = "crates/ruff_db", default-features = false }
2121
ruff_diagnostics = { version = "0.0.11", path = "crates/ruff_diagnostics" }

crates/ruff_linter/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ ruff_db = { workspace = true, features = ["junit", "serde"] }
1818
ruff_diagnostics = { workspace = true, features = ["serde"] }
1919
ruff_macros = { workspace = true }
2020
ruff_notebook = { workspace = true }
21-
ruff_python_ast = { workspace = true, features = ["serde", "cache"] }
21+
ruff_python_ast = { workspace = true, features = ["serde"] }
2222
ruff_python_codegen = { workspace = true }
2323
ruff_python_importer = { workspace = true }
2424
ruff_python_index = { workspace = true }

crates/ruff_python_ast/Cargo.toml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,9 @@ ignored = ["ruff_cache"]
1818
name = "ruff_python_ast"
1919

2020
[dependencies]
21-
ruff_cache = { workspace = true, optional = true }
22-
ruff_macros = { workspace = true, optional = true }
21+
# Not published: RustPython does not use the cache and salsa features.
22+
# ruff_cache = { workspace = true, optional = true }
23+
# ruff_macros = { workspace = true, optional = true }
2324
ruff_python_trivia = { workspace = true }
2425
ruff_source_file = { workspace = true }
2526
ruff_text_size = { workspace = true }
@@ -33,7 +34,7 @@ get-size2 = { workspace = true, optional = true }
3334
is-macro = { workspace = true }
3435
memchr = { workspace = true }
3536
rustc-hash = { workspace = true }
36-
salsa = { workspace = true, optional = true }
37+
# salsa = { workspace = true, optional = true }
3738
schemars = { workspace = true, optional = true }
3839
serde = { workspace = true, optional = true }
3940
serde_json = { workspace = true, optional = true }
@@ -42,17 +43,16 @@ thin-vec = { workspace = true }
4243

4344
[features]
4445
schemars = ["dep:schemars", "dep:serde_json"]
45-
cache = ["dep:ruff_cache", "dep:ruff_macros"]
46+
# cache = ["dep:ruff_cache", "dep:ruff_macros"]
4647
serde = [
4748
"dep:serde",
4849
"ruff_text_size/serde",
49-
"dep:ruff_cache",
5050
"char_str/serde",
5151
"compact_str/serde",
5252
"thin-vec/serde",
5353
]
5454
get-size = ["dep:get-size2", "char_str/get-size", "ruff_text_size/get-size"]
55-
salsa = ["dep:salsa"]
55+
# salsa = ["dep:salsa"]
5656

5757
[lints]
5858
workspace = true

crates/ty_module_resolver/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ license = { workspace = true }
1313
[dependencies]
1414
ruff_db = { workspace = true }
1515
ruff_memory_usage = { workspace = true }
16-
ruff_python_ast = { workspace = true, features = ["salsa"] }
16+
ruff_python_ast = { workspace = true }
1717
ruff_python_stdlib = { workspace = true }
1818

1919
anyhow = { workspace = true }

crates/ty_python_core/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ license = { workspace = true }
1414
ruff_db = { workspace = true }
1515
ruff_index = { workspace = true, features = ["salsa"] }
1616
ruff_memory_usage = { workspace = true }
17-
ruff_python_ast = { workspace = true, features = ["salsa"] }
17+
ruff_python_ast = { workspace = true }
1818
ruff_python_parser = { workspace = true }
1919
ruff_text_size = { workspace = true }
2020
ty_module_resolver = { workspace = true }

crates/ty_python_semantic/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ ruff_diagnostics = { workspace = true }
1616
ruff_index = { workspace = true, features = ["salsa"] }
1717
ruff_macros = { workspace = true }
1818
ruff_memory_usage = { workspace = true }
19-
ruff_python_ast = { workspace = true, features = ["salsa"] }
19+
ruff_python_ast = { workspace = true }
2020
ruff_python_literal = { workspace = true }
2121
ruff_python_parser = { workspace = true }
2222
ruff_python_stdlib = { workspace = true }

0 commit comments

Comments
 (0)