Skip to content

Commit 584a52d

Browse files
committed
fix CI
1 parent e00c1f2 commit 584a52d

File tree

3 files changed

+3
-9
lines changed

3 files changed

+3
-9
lines changed

.github/workflows/ci.yaml

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -193,13 +193,6 @@ jobs:
193193
- name: Check compilation for freebsd
194194
run: cargo check --target x86_64-unknown-freebsd
195195

196-
- uses: dtolnay/rust-toolchain@stable
197-
with:
198-
target: wasm32-unknown-unknown
199-
200-
- name: Check compilation for wasm32
201-
run: cargo check --target wasm32-unknown-unknown --no-default-features
202-
203196
- uses: dtolnay/rust-toolchain@stable
204197
with:
205198
target: x86_64-unknown-freebsd

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ ssl-vendor = ["rustpython-stdlib/ssl-vendor"]
3636
rustpython-compiler = { path = "compiler", version = "0.1.1" }
3737
rustpython-parser = { path = "compiler/parser", version = "0.1.1" }
3838
rustpython-pylib = { path = "pylib", optional = true, default-features = false }
39-
rustpython-stdlib = { path = "stdlib", optional = true, default-features = false }
39+
rustpython-stdlib = { path = "stdlib", optional = true, default-features = false, features = ["compiler"] }
4040
rustpython-vm = { path = "vm", version = "0.1.1", default-features = false, features = ["compiler"] }
4141

4242
cfg-if = "1.0.0"

stdlib/src/dis.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ mod decl {
55
use crate::vm::{
66
builtins::{PyCode, PyDictRef, PyStrRef},
77
bytecode::CodeFlags,
8-
compiler, PyObjectRef, PyRef, PyResult, TryFromObject, VirtualMachine,
8+
PyObjectRef, PyRef, PyResult, TryFromObject, VirtualMachine,
99
};
1010

1111
#[pyfunction]
@@ -17,6 +17,7 @@ mod decl {
1717
// String:
1818
#[cfg(feature = "compiler")]
1919
{
20+
use crate::vm::compiler;
2021
vm.compile(co_str.as_str(), compiler::Mode::Exec, "<dis>".to_owned())
2122
.map_err(|err| vm.new_syntax_error(&err))?
2223
}

0 commit comments

Comments
 (0)