Skip to content

Commit c585678

Browse files
authored
Merge format and literal back into this repo (and update malachite) (RustPython#5618)
* Merge format and literal back into this repo * Update format and literal to work * Update malachite * Remove RustPython/Parser from Cargo.toml
1 parent eaf4cdf commit c585678

File tree

22 files changed

+3240
-73
lines changed

22 files changed

+3240
-73
lines changed

Cargo.lock

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

Cargo.toml

Lines changed: 5 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ x86_64-pc-windows-msvc = { triplet = "x64-windows-static-md", dev-dependencies =
9494
[workspace]
9595
resolver = "2"
9696
members = [
97-
"compiler", "compiler/core", "compiler/codegen", "compiler/source",
97+
"compiler", "compiler/core", "compiler/codegen", "compiler/literal", "compiler/source",
9898
".", "common", "derive", "jit", "vm", "vm/sre_engine", "pylib", "stdlib", "derive-impl",
9999
"wasm/lib",
100100
]
@@ -116,6 +116,7 @@ rustpython-common = { path = "common", version = "0.4.0" }
116116
rustpython-derive = { path = "derive", version = "0.4.0" }
117117
rustpython-derive-impl = { path = "derive-impl", version = "0.4.0" }
118118
rustpython-jit = { path = "jit", version = "0.4.0" }
119+
rustpython-literal = { path = "compiler/literal", version = "0.4.0" }
119120
rustpython-vm = { path = "vm", default-features = false, version = "0.4.0" }
120121
rustpython-pylib = { path = "pylib", version = "0.4.0" }
121122
rustpython-stdlib = { path = "stdlib", default-features = false, version = "0.4.0" }
@@ -127,21 +128,6 @@ ruff_python_ast = { git = "https://github.com/astral-sh/ruff.git", tag = "0.11.0
127128
ruff_text_size = { git = "https://github.com/astral-sh/ruff.git", tag = "0.11.0" }
128129
ruff_source_file = { git = "https://github.com/astral-sh/ruff.git", tag = "0.11.0" }
129130
ruff_python_codegen = { git = "https://github.com/astral-sh/ruff.git", tag = "0.11.0" }
130-
# rustpython-literal = { version = "0.4.0" }
131-
# rustpython-parser-core = { version = "0.4.0" }
132-
# rustpython-parser = { version = "0.4.0" }
133-
# rustpython-ast = { version = "0.4.0" }
134-
# rustpython-format= { version = "0.4.0" }
135-
rustpython-literal = { git = "https://github.com/RustPython/Parser.git", version = "0.4.0", rev = "d2f137b372ec08ce4a243564a80f8f9153c45a23" }
136-
# rustpython-parser-core = { git = "https://github.com/RustPython/Parser.git", version = "0.4.0", rev = "d2f137b372ec08ce4a243564a80f8f9153c45a23" }
137-
# rustpython-parser = { git = "https://github.com/RustPython/Parser.git", version = "0.4.0", rev = "d2f137b372ec08ce4a243564a80f8f9153c45a23" }
138-
# rustpython-ast = { git = "https://github.com/RustPython/Parser.git", version = "0.4.0", rev = "d2f137b372ec08ce4a243564a80f8f9153c45a23" }
139-
rustpython-format = { git = "https://github.com/RustPython/Parser.git", version = "0.4.0", rev = "d2f137b372ec08ce4a243564a80f8f9153c45a23" }
140-
# rustpython-literal = { path = "../RustPython-parser/literal" }
141-
# rustpython-parser-core = { path = "../RustPython-parser/core" }
142-
# rustpython-parser = { path = "../RustPython-parser/parser" }
143-
# rustpython-ast = { path = "../RustPython-parser/ast" }
144-
# rustpython-format = { path = "../RustPython-parser/format" }
145131

146132
ahash = "0.8.11"
147133
ascii = "1.1"
@@ -163,9 +149,9 @@ junction = "1.2.0"
163149
libc = "0.2.169"
164150
log = "0.4.25"
165151
nix = { version = "0.29", features = ["fs", "user", "process", "term", "time", "signal", "ioctl", "socket", "sched", "zerocopy", "dir", "hostname", "net", "poll"] }
166-
malachite-bigint = "0.2.3"
167-
malachite-q = "0.4.22"
168-
malachite-base = "0.4.22"
152+
malachite-bigint = "0.5"
153+
malachite-q = "0.5"
154+
malachite-base = "0.5"
169155
memchr = "2.7.4"
170156
num-complex = "0.4.6"
171157
num-integer = "0.1.46"

common/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ license.workspace = true
1212
threading = ["parking_lot"]
1313

1414
[dependencies]
15-
rustpython-format = { workspace = true }
15+
rustpython-literal = { workspace = true }
1616

1717
ascii = { workspace = true }
1818
bitflags = { workspace = true }
@@ -45,4 +45,4 @@ windows-sys = { workspace = true, features = [
4545
] }
4646

4747
[lints]
48-
workspace = true
48+
workspace = true

0 commit comments

Comments
 (0)