mirror of
https://github.com/fluencelabs/wasmer
synced 2025-04-25 10:22:19 +00:00
Improved imports
This commit is contained in:
parent
5572ebd990
commit
c312bdc782
@ -7,41 +7,44 @@ use std::fs::File;
|
|||||||
use std::path::PathBuf;
|
use std::path::PathBuf;
|
||||||
use std::process::exit;
|
use std::process::exit;
|
||||||
use std::str::FromStr;
|
use std::str::FromStr;
|
||||||
use wasmer_runtime::compile_with_config_with;
|
#[cfg(feature = "backend-llvm")]
|
||||||
|
use std::{cell::RefCell, rc::Rc};
|
||||||
|
|
||||||
use structopt::StructOpt;
|
use structopt::StructOpt;
|
||||||
|
|
||||||
#[cfg(feature = "backend-cranelift")]
|
|
||||||
use wasmer_clif_backend::CraneliftCompiler;
|
|
||||||
#[cfg(feature = "backend-llvm")]
|
|
||||||
use wasmer_llvm_backend::{
|
|
||||||
InkwellMemoryBuffer, InkwellModule, LLVMBackendConfig, LLVMCallbacks, LLVMCompiler,
|
|
||||||
};
|
|
||||||
use wasmer_runtime::{
|
use wasmer_runtime::{
|
||||||
cache::{Cache as BaseCache, FileSystemCache, WasmHash},
|
cache::{Cache as BaseCache, FileSystemCache, WasmHash},
|
||||||
Backend, DynFunc, Value,
|
compile_with_config_with, Backend, DynFunc, Value,
|
||||||
};
|
};
|
||||||
#[cfg(feature = "managed")]
|
|
||||||
use wasmer_runtime_core::tiering::{run_tiering, InteractiveShellContext, ShellExitOperation};
|
|
||||||
use wasmer_runtime_core::{
|
use wasmer_runtime_core::{
|
||||||
self,
|
self,
|
||||||
backend::{Compiler, CompilerConfig, MemoryBoundCheckMode},
|
backend::{Compiler, CompilerConfig, MemoryBoundCheckMode},
|
||||||
loader::{Instance as LoadedInstance, LocalLoader},
|
loader::{Instance as LoadedInstance, LocalLoader},
|
||||||
Module,
|
Module,
|
||||||
};
|
};
|
||||||
|
|
||||||
#[cfg(unix)]
|
#[cfg(unix)]
|
||||||
use wasmer_runtime_core::{
|
use wasmer_runtime_core::{
|
||||||
fault::{pop_code_version, push_code_version},
|
fault::{pop_code_version, push_code_version},
|
||||||
state::CodeVersion,
|
state::CodeVersion,
|
||||||
};
|
};
|
||||||
#[cfg(feature = "wasi")]
|
|
||||||
use wasmer_wasi;
|
#[cfg(feature = "backend-cranelift")]
|
||||||
|
use wasmer_clif_backend::CraneliftCompiler;
|
||||||
|
|
||||||
#[cfg(feature = "backend-llvm")]
|
#[cfg(feature = "backend-llvm")]
|
||||||
use std::{cell::RefCell, rc::Rc};
|
use wasmer_llvm_backend::{
|
||||||
|
InkwellMemoryBuffer, InkwellModule, LLVMBackendConfig, LLVMCallbacks, LLVMCompiler,
|
||||||
|
};
|
||||||
#[cfg(feature = "backend-llvm")]
|
#[cfg(feature = "backend-llvm")]
|
||||||
use wasmer_runtime_core::backend::BackendCompilerConfig;
|
use wasmer_runtime_core::backend::BackendCompilerConfig;
|
||||||
|
|
||||||
|
#[cfg(feature = "managed")]
|
||||||
|
use wasmer_runtime_core::tiering::{run_tiering, InteractiveShellContext, ShellExitOperation};
|
||||||
|
|
||||||
|
#[cfg(feature = "wasi")]
|
||||||
|
use wasmer_wasi;
|
||||||
|
|
||||||
#[cfg(not(any(
|
#[cfg(not(any(
|
||||||
feature = "backend-cranelift",
|
feature = "backend-cranelift",
|
||||||
feature = "backend-llvm",
|
feature = "backend-llvm",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user