From 102e512a0ab13af95f6676ae33b9f40c440d6acf Mon Sep 17 00:00:00 2001 From: dennis zhuang Date: Tue, 15 Nov 2022 15:06:58 +0800 Subject: [PATCH] feat: enable freeze-stdlib feature in rust-python (#511) --- Cargo.lock | 4 ++++ src/script/Cargo.toml | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/Cargo.lock b/Cargo.lock index 3b5d98857d..b1a8f2b8c3 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -4887,6 +4887,10 @@ dependencies = [ name = "rustpython-pylib" version = "0.1.0" source = "git+https://github.com/RustPython/RustPython?rev=02a1d1d#02a1d1d7db57afbb78049599c2585cc7cd59e6d3" +dependencies = [ + "rustpython-bytecode", + "rustpython-derive", +] [[package]] name = "rustpython-vm" diff --git a/src/script/Cargo.toml b/src/script/Cargo.toml index 009ed069e8..83e350a0c2 100644 --- a/src/script/Cargo.toml +++ b/src/script/Cargo.toml @@ -43,7 +43,7 @@ rustpython-bytecode = { git = "https://github.com/RustPython/RustPython", option rustpython-compiler = { git = "https://github.com/RustPython/RustPython", optional = true, rev = "02a1d1d" } rustpython-compiler-core = { git = "https://github.com/RustPython/RustPython", optional = true, rev = "02a1d1d" } rustpython-parser = { git = "https://github.com/RustPython/RustPython", optional = true, rev = "02a1d1d" } -rustpython-vm = { git = "https://github.com/RustPython/RustPython", optional = true, rev = "02a1d1d" } +rustpython-vm = { git = "https://github.com/RustPython/RustPython", optional = true, rev = "02a1d1d", features = ["default", "freeze-stdlib"] } snafu = { version = "0.7", features = ["backtraces"] } sql = { path = "../sql" } table = { path = "../table" }