mirror of
https://github.com/RustPython/RustPython.git
synced 2026-10-28 18:59:04 +08:00
Fixi wasm32 build for workspace
This commit is contained in:
1 parent
24d9be1611
commit
cc8735a6e2
3 files changed
+9
-7
No files matched your search
@@ -115,7 +115,7 @@ jobs:
|
||||
uses: actions-rs/cargo@v1
|
||||
with:
|
||||
command: check
|
||||
args: --target wasm32-unknown-unknown --manifest-path vm/Cargo.toml
|
||||
args: --target wasm32-unknown-unknown --no-default-features
|
||||
|
||||
- uses: actions-rs/toolchain@v1
|
||||
with:
|
||||
|
||||
+1
-1
@@ -46,7 +46,7 @@ libc = "0.2.123"
|
||||
flame = { version = "0.2.2", optional = true }
|
||||
flamescope = { version = "0.1.2", optional = true }
|
||||
|
||||
[target.'cfg(not(target_os = "wasi"))'.dependencies]
|
||||
[target.'cfg(not(target_arch = "wasm32"))'.dependencies]
|
||||
rustyline = "9.1.2"
|
||||
|
||||
[dev-dependencies]
|
||||
|
||||
+7
-5
@@ -1,7 +1,9 @@
|
||||
#![cfg_attr(target_os = "wasi", allow(dead_code))]
|
||||
use rustpython_vm::builtins::{PyDictRef, PyStrRef};
|
||||
use rustpython_vm::VirtualMachine;
|
||||
use rustpython_vm::{function::ArgIterable, PyResult, TryFromObject};
|
||||
#![cfg_attr(target_arch = "wasm32", allow(dead_code))]
|
||||
use rustpython_vm::{
|
||||
builtins::{PyDictRef, PyStrRef},
|
||||
function::ArgIterable,
|
||||
PyResult, TryFromObject, VirtualMachine,
|
||||
};
|
||||
|
||||
pub struct ShellHelper<'vm> {
|
||||
vm: &'vm VirtualMachine,
|
||||
@@ -140,7 +142,7 @@ impl<'vm> ShellHelper<'vm> {
|
||||
}
|
||||
|
||||
cfg_if::cfg_if! {
|
||||
if #[cfg(not(target_os = "wasi"))] {
|
||||
if #[cfg(not(target_arch = "wasm32"))] {
|
||||
use rustyline::{
|
||||
completion::Completer, highlight::Highlighter, hint::Hinter, validate::Validator, Context,
|
||||
Helper,
|
||||
|
||||
Reference in new issue
Block a user