Skip to content

Commit e03d5da

Browse files
coolreader18youknowone
authored andcommitted
fix CI
1 parent d98f131 commit e03d5da

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
@@ -206,13 +206,6 @@ jobs:
206206
- name: Check compilation for freebsd
207207
run: cargo check --target x86_64-unknown-freebsd
208208

209-
- uses: dtolnay/rust-toolchain@stable
210-
with:
211-
target: wasm32-unknown-unknown
212-
213-
- name: Check compilation for wasm32
214-
run: cargo check --target wasm32-unknown-unknown --no-default-features
215-
216209
- uses: dtolnay/rust-toolchain@stable
217210
with:
218211
target: x86_64-unknown-freebsd

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ ssl-vendor = ["rustpython-stdlib/ssl-vendor"]
7575
rustpython-compiler = { path = "compiler", version = "0.2.0" }
7676
rustpython-parser = { path = "compiler/parser", version = "0.2.0" }
7777
rustpython-pylib = { path = "pylib", optional = true, default-features = false }
78-
rustpython-stdlib = { path = "stdlib", optional = true, default-features = false }
78+
rustpython-stdlib = { path = "stdlib", optional = true, default-features = false, features = ["compiler"] }
7979
rustpython-vm = { path = "vm", version = "0.2.0", default-features = false, features = ["compiler"] }
8080

8181
atty = { workspace = true }

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)