mirror of
https://github.com/mii443/wasmer.git
synced 2025-08-31 12:49:28 +00:00
fix(tests/compilers): Reorganize imports
This commit is contained in:
@ -1,5 +1,7 @@
|
|||||||
use std::{fs, path::PathBuf};
|
use std::{fs, path::PathBuf};
|
||||||
|
|
||||||
use wasmer::{Engine, Module};
|
use wasmer::{Engine, Module};
|
||||||
|
use wasmer_types::Features;
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
fn artifact_serialization_roundtrip() {
|
fn artifact_serialization_roundtrip() {
|
||||||
@ -24,8 +26,13 @@ fn artifact_serialization_roundtrip() {
|
|||||||
#[ignore = "Please enable it when tests fail, so we can generate new versions of the .wasmu files"]
|
#[ignore = "Please enable it when tests fail, so we can generate new versions of the .wasmu files"]
|
||||||
fn artifact_serialization_build() {
|
fn artifact_serialization_build() {
|
||||||
use std::str::FromStr;
|
use std::str::FromStr;
|
||||||
use wasmer::sys::{get_default_compiler_config, Features, NativeEngineExt};
|
use wasmer::{
|
||||||
use wasmer::{CpuFeature, Target, Triple};
|
sys::{
|
||||||
|
engine::{get_default_compiler_config, NativeEngineExt},
|
||||||
|
CpuFeature, Target, Triple,
|
||||||
|
},
|
||||||
|
Engine, Module,
|
||||||
|
};
|
||||||
|
|
||||||
let file_names = ["bash.wasm", "cowsay.wasm", "python-3.11.3.wasm"];
|
let file_names = ["bash.wasm", "cowsay.wasm", "python-3.11.3.wasm"];
|
||||||
let operating_systems = ["linux", "windows"];
|
let operating_systems = ["linux", "windows"];
|
||||||
|
@ -1,6 +1,9 @@
|
|||||||
use std::sync::Arc;
|
use std::sync::Arc;
|
||||||
use wasmer::sys::Features;
|
use wasmer::sys::Features;
|
||||||
use wasmer::{CompilerConfig, ModuleMiddleware, Store};
|
use wasmer::{
|
||||||
|
sys::{CompilerConfig, ModuleMiddleware},
|
||||||
|
Store,
|
||||||
|
};
|
||||||
|
|
||||||
#[derive(Clone, Debug, PartialEq, Eq)]
|
#[derive(Clone, Debug, PartialEq, Eq)]
|
||||||
pub enum Compiler {
|
pub enum Compiler {
|
||||||
|
@ -3,7 +3,7 @@ use anyhow::Result;
|
|||||||
use std::sync::Arc;
|
use std::sync::Arc;
|
||||||
use wasmer::wasmparser::Operator;
|
use wasmer::wasmparser::Operator;
|
||||||
use wasmer::FunctionEnv;
|
use wasmer::FunctionEnv;
|
||||||
use wasmer::*;
|
use wasmer::{sys::*, *};
|
||||||
|
|
||||||
#[derive(Debug)]
|
#[derive(Debug)]
|
||||||
struct Add2MulGen {
|
struct Add2MulGen {
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
use anyhow::Result;
|
use anyhow::Result;
|
||||||
use wasmer::*;
|
use wasmer::{sys::engine::NativeEngineExt, *};
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
fn sanity_test_artifact_deserialize() {
|
fn sanity_test_artifact_deserialize() {
|
||||||
|
Reference in New Issue
Block a user