Skip to content

Commit

Permalink
drop compiler dependencies from stdlib
Browse files Browse the repository at this point in the history
  • Loading branch information
youknowone committed Aug 21, 2022
1 parent fb5ac9e commit 86118d5
Show file tree
Hide file tree
Showing 5 changed files with 2 additions and 16 deletions.
1 change: 0 additions & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ clap = "2.34"
rustpython-compiler = { path = "compiler", version = "0.1.1" }
rustpython-parser = { path = "compiler/parser", version = "0.1.1" }
rustpython-vm = { path = "vm", version = "0.1.1", default-features = false, features = ["compile-parse"] }
rustpython-stdlib = {path = "stdlib", optional = true, default-features = false, features = ["compile-parse"]}
rustpython-stdlib = {path = "stdlib", optional = true, default-features = false}
dirs = { package = "dirs-next", version = "2.0.0" }
num-traits = "0.2.14"
cfg-if = "1.0.0"
Expand Down
8 changes: 0 additions & 8 deletions stdlib/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ edition = "2021"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[dependencies]
rustpython-parser = { path = "../compiler/parser", optional = true }
rustpython-derive = { path = "../derive" }
rustpython-vm = { path = "../vm" }
rustpython-common = { path = "../common" }
Expand Down Expand Up @@ -81,14 +80,7 @@ page_size = "0.4"
termios = "0.3.3"

[features]
default = ["compile-parse"]
compile-parse = ["rustpython-vm/compile-parse", "rustpython-parser"]
threading = ["rustpython-common/threading", "rustpython-vm/threading"]
parser = ["rustpython-vm/parser"]
ast = ["rustpython-vm/ast"]
compiler = ["rustpython-vm/compiler"]
# compiler = ["rustpython-compiler", "rustpython-compiler-core", "ast"]
# parser = ["rustpython-parser", "ast"]

zlib = ["libz-sys", "flate2/zlib"]
bz2 = ["bzip2"]
Expand Down
5 changes: 0 additions & 5 deletions stdlib/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -109,11 +109,6 @@ pub fn get_module_inits() -> impl Iterator<Item = (Cow<'static, str>, StdlibInit
"_statistics" => statistics::make_module,
// crate::vm::sysmodule::sysconfigdata_name() => sysconfigdata::make_module,
}
// parser related modules:
#[cfg(feature = "rustpython-ast")]
{
"_ast" => ast::make_module,
}
#[cfg(any(unix, target_os = "wasi"))]
{
"fcntl" => fcntl::make_module,
Expand Down
2 changes: 1 addition & 1 deletion wasm/lib/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ rustpython-parser = { path = "../../compiler/parser" }
rustpython-common = { path = "../../common" }
# make sure no threading! otherwise wasm build will fail
rustpython-vm = { path = "../../vm", default-features = false, features = ["compile-parse", "encodings"] }
rustpython-stdlib = { path = "../../stdlib", default-features = false, features = ["compile-parse"], optional = true }
rustpython-stdlib = { path = "../../stdlib", default-features = false, optional = true }
wasm-bindgen = "0.2"
wasm-bindgen-futures = "0.4"
serde-wasm-bindgen = "0.3.1"
Expand Down

0 comments on commit 86118d5

Please sign in to comment.