Skip to content

Commit a52c5e5

Browse files
committed
rename parse-compile feature to compiler
1 parent 721d124 commit a52c5e5

File tree

3 files changed

+13
-12
lines changed

3 files changed

+13
-12
lines changed

Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ env_logger = { version = "0.9.0", default-features = false, features = ["atty",
3838
clap = "2.34"
3939
rustpython-compiler = { path = "compiler", version = "0.1.1" }
4040
rustpython-parser = { path = "compiler/parser", version = "0.1.1" }
41-
rustpython-vm = { path = "vm", version = "0.1.1", default-features = false, features = ["compile-parse"] }
41+
rustpython-vm = { path = "vm", version = "0.1.1", default-features = false, features = ["compiler"] }
4242
rustpython-stdlib = {path = "stdlib", optional = true, default-features = false}
4343
dirs = { package = "dirs-next", version = "2.0.0" }
4444
num-traits = "0.2.14"

vm/Cargo.toml

+11-10
Original file line numberDiff line numberDiff line change
@@ -9,34 +9,35 @@ edition = "2021"
99
include = ["src/**/*.rs", "Cargo.toml", "build.rs", "Lib/**/*.py"]
1010

1111
[features]
12-
default = ["compile-parse"]
12+
default = ["compiler"]
1313
importlib = []
1414
encodings = ["importlib"]
1515
vm-tracing-logging = []
1616
flame-it = ["flame", "flamer"]
1717
freeze-stdlib = ["rustpython-pylib/freeze-stdlib"]
1818
jit = ["rustpython-jit"]
1919
threading = ["rustpython-common/threading"]
20-
compile-parse = ["parser", "compiler"]
20+
compiler = ["parser", "codegen"]
2121
ast = ["rustpython-ast"]
22-
compiler = ["rustpython-compiler", "rustpython-codegen", "ast"]
22+
codegen = ["rustpython-compiler", "rustpython-codegen", "ast"]
2323
parser = ["rustpython-parser", "ast"]
2424

2525
[dependencies]
26-
num-complex = { version = "0.4.0", features = ["serde"] }
27-
num-bigint = { version = "0.4.3", features = ["serde"] }
28-
num-traits = "0.2.14"
29-
num-integer = "0.1.44"
30-
num-rational = "0.4.0"
31-
rustpython-common = { path = "../common" }
32-
rustpython-derive = { path = "../derive", version = "0.1.2" }
3326
rustpython-compiler = { path = "../compiler", optional = true, version = "0.1.2" }
3427
rustpython-ast = { path = "../compiler/ast", optional = true, version = "0.1" }
3528
rustpython-parser = { path = "../compiler/parser", optional = true, version = "0.1.2" }
3629
rustpython-codegen = { path = "../compiler/codegen", optional = true, version = "0.1.2" }
3730
rustpython-bytecode = { path = "../compiler/bytecode", version = "0.1.2" }
31+
rustpython-common = { path = "../common" }
32+
rustpython-derive = { path = "../derive", version = "0.1.2" }
3833
rustpython-jit = { path = "../jit", optional = true, version = "0.1.2" }
3934
rustpython-pylib = { path = "pylib-crate", version = "0.1.0" }
35+
36+
num-complex = { version = "0.4.0", features = ["serde"] }
37+
num-bigint = { version = "0.4.3", features = ["serde"] }
38+
num-traits = "0.2.14"
39+
num-integer = "0.1.44"
40+
num-rational = "0.4.0"
4041
rand = "0.8.5"
4142
getrandom = { version = "0.2.6", features = ["js"] }
4243
log = "0.4.16"

wasm/lib/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ no-start-func = []
1919
rustpython-parser = { path = "../../compiler/parser" }
2020
rustpython-common = { path = "../../common" }
2121
# make sure no threading! otherwise wasm build will fail
22-
rustpython-vm = { path = "../../vm", default-features = false, features = ["compile-parse", "encodings"] }
22+
rustpython-vm = { path = "../../vm", default-features = false, features = ["compiler", "encodings"] }
2323
rustpython-stdlib = { path = "../../stdlib", default-features = false, optional = true }
2424
wasm-bindgen = "0.2"
2525
wasm-bindgen-futures = "0.4"

0 commit comments

Comments
 (0)