fix(tests/compilers): Reorganize imports

This commit is contained in:
Edoardo Marangoni
2024-11-20 17:42:12 +01:00
parent 4836270a55
commit 491e128f30
4 changed files with 15 additions and 5 deletions

View File

@ -1,5 +1,7 @@
use std::{fs, path::PathBuf};
use wasmer::{Engine, Module};
use wasmer_types::Features;
#[test]
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"]
fn artifact_serialization_build() {
use std::str::FromStr;
use wasmer::sys::{get_default_compiler_config, Features, NativeEngineExt};
use wasmer::{CpuFeature, Target, Triple};
use wasmer::{
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 operating_systems = ["linux", "windows"];

View File

@ -1,6 +1,9 @@
use std::sync::Arc;
use wasmer::sys::Features;
use wasmer::{CompilerConfig, ModuleMiddleware, Store};
use wasmer::{
sys::{CompilerConfig, ModuleMiddleware},
Store,
};
#[derive(Clone, Debug, PartialEq, Eq)]
pub enum Compiler {

View File

@ -3,7 +3,7 @@ use anyhow::Result;
use std::sync::Arc;
use wasmer::wasmparser::Operator;
use wasmer::FunctionEnv;
use wasmer::*;
use wasmer::{sys::*, *};
#[derive(Debug)]
struct Add2MulGen {

View File

@ -1,5 +1,5 @@
use anyhow::Result;
use wasmer::*;
use wasmer::{sys::engine::NativeEngineExt, *};
#[test]
fn sanity_test_artifact_deserialize() {