Fixi wasm32 build for workspace

This commit is contained in:
Jeong Yunwon committed 2022-04-18 21:32:08 +09:00
1 parent 24d9be1611
commit cc8735a6e2
3 files changed
+9 -7

No files matched your search

+1 -1
View File
@@ -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
View File
@@ -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
View File
@@ -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,