Skip to content

Commit 86118d5

Browse files
committed
drop compiler dependencies from stdlib
1 parent fb5ac9e commit 86118d5

File tree

5 files changed

+2
-16
lines changed

5 files changed

+2
-16
lines changed

Cargo.lock

-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ clap = "2.34"
3939
rustpython-compiler = { path = "compiler", version = "0.1.1" }
4040
rustpython-parser = { path = "compiler/parser", version = "0.1.1" }
4141
rustpython-vm = { path = "vm", version = "0.1.1", default-features = false, features = ["compile-parse"] }
42-
rustpython-stdlib = {path = "stdlib", optional = true, default-features = false, features = ["compile-parse"]}
42+
rustpython-stdlib = {path = "stdlib", optional = true, default-features = false}
4343
dirs = { package = "dirs-next", version = "2.0.0" }
4444
num-traits = "0.2.14"
4545
cfg-if = "1.0.0"

stdlib/Cargo.toml

-8
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ edition = "2021"
66
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
77

88
[dependencies]
9-
rustpython-parser = { path = "../compiler/parser", optional = true }
109
rustpython-derive = { path = "../derive" }
1110
rustpython-vm = { path = "../vm" }
1211
rustpython-common = { path = "../common" }
@@ -81,14 +80,7 @@ page_size = "0.4"
8180
termios = "0.3.3"
8281

8382
[features]
84-
default = ["compile-parse"]
85-
compile-parse = ["rustpython-vm/compile-parse", "rustpython-parser"]
8683
threading = ["rustpython-common/threading", "rustpython-vm/threading"]
87-
parser = ["rustpython-vm/parser"]
88-
ast = ["rustpython-vm/ast"]
89-
compiler = ["rustpython-vm/compiler"]
90-
# compiler = ["rustpython-compiler", "rustpython-compiler-core", "ast"]
91-
# parser = ["rustpython-parser", "ast"]
9284

9385
zlib = ["libz-sys", "flate2/zlib"]
9486
bz2 = ["bzip2"]

stdlib/src/lib.rs

-5
Original file line numberDiff line numberDiff line change
@@ -109,11 +109,6 @@ pub fn get_module_inits() -> impl Iterator<Item = (Cow<'static, str>, StdlibInit
109109
"_statistics" => statistics::make_module,
110110
// crate::vm::sysmodule::sysconfigdata_name() => sysconfigdata::make_module,
111111
}
112-
// parser related modules:
113-
#[cfg(feature = "rustpython-ast")]
114-
{
115-
"_ast" => ast::make_module,
116-
}
117112
#[cfg(any(unix, target_os = "wasi"))]
118113
{
119114
"fcntl" => fcntl::make_module,

wasm/lib/Cargo.toml

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

0 commit comments

Comments
 (0)