Skip to content

Commit 5cf85f0

Browse files
authored
Merge pull request #13 from youknowone/locator
Python location transform and related refactoring
2 parents 7b8844b + 4dc030b commit 5cf85f0

File tree

150 files changed

+16223
-27575
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

150 files changed

+16223
-27575
lines changed

Cargo.toml

+8-3
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,18 @@ include = ["LICENSE", "Cargo.toml", "src/**/*.rs"]
1212
resolver = "2"
1313
members = [
1414
"ast", "core", "literal", "parser",
15+
"ruff_text_size", "ruff_source_location",
1516
]
1617

1718
[workspace.dependencies]
19+
rustpython-ast = { path = "ast", version = "0.2.0" }
20+
rustpython-parser-core = { path = "core", version = "0.2.0" }
21+
rustpython-literal = { path = "literal", version = "0.2.0" }
22+
ruff_text_size = { path = "ruff_text_size" }
23+
ruff_source_location = { path = "ruff_source_location" }
24+
1825
ahash = "0.7.6"
1926
anyhow = "1.0.45"
20-
ascii = "1.0"
21-
bitflags = "1.3.2"
22-
bstr = "0.2.17"
2327
cfg-if = "1.0"
2428
insta = "1.14.0"
2529
itertools = "0.10.3"
@@ -30,6 +34,7 @@ num-traits = "0.2"
3034
rand = "0.8.5"
3135
serde = "1.0"
3236
static_assertions = "1.1"
37+
once_cell = "1.17.1"
3338
unicode_names2 = { version = "0.6.0", git = "https://github.com/youknowone/unicode_names2.git", rev = "4ce16aa85cbcdd9cc830410f1a72ef9a235f2fde" }
3439

3540
[profile.dev.package."*"]

ast/Cargo.toml

+4-3
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,14 @@ repository = "https://github.com/RustPython/RustPython"
88
license = "MIT"
99

1010
[features]
11-
default = ["constant-optimization", "fold"]
11+
default = ["constant-optimization", "fold", "source-code"]
1212
constant-optimization = ["fold"]
13+
source-code = ["fold"]
1314
fold = []
1415
unparse = ["rustpython-literal"]
1516

1617
[dependencies]
17-
rustpython-compiler-core = { path = "../core", version = "0.2.0" }
18-
rustpython-literal = { path = "../literal", version = "0.2.0", optional = true }
18+
rustpython-parser-core = { workspace = true }
19+
rustpython-literal = { workspace = true, optional = true }
1920

2021
num-bigint = { workspace = true }

0 commit comments

Comments
 (0)