mirror of
https://github.com/mii443/wasmer.git
synced 2025-12-09 22:28:21 +00:00
Improved module imports
This commit is contained in:
@@ -39,7 +39,7 @@ pub(crate) mod vm;
|
||||
mod wasm_bindgen_polyfill;
|
||||
|
||||
pub use crate::js::as_js::AsJs;
|
||||
pub use crate::js::error::{LinkError};
|
||||
pub use crate::js::module::{Module, ModuleTypeHints};
|
||||
pub use crate::js::error::LinkError;
|
||||
pub use crate::js::module::ModuleTypeHints;
|
||||
pub use crate::js::store::StoreObjects;
|
||||
pub use crate::js::trap::RuntimeError;
|
||||
|
||||
@@ -12,10 +12,14 @@ pub use target_lexicon::{Architecture, CallingConvention, OperatingSystem, Tripl
|
||||
pub use wasmer_compiler::{
|
||||
wasmparser, CompilerConfig, FunctionMiddleware, MiddlewareReaderState, ModuleMiddleware,
|
||||
};
|
||||
pub use wasmer_compiler::{Features, FrameInfo, LinkError, RuntimeError, Tunables};
|
||||
pub use wasmer_compiler::{Features, FrameInfo, LinkError, RuntimeError, Tunables, Artifact, EngineBuilder};
|
||||
#[cfg(feature = "singlepass")]
|
||||
pub use wasmer_compiler_singlepass::Singlepass;
|
||||
#[cfg(feature = "cranelift")]
|
||||
pub use wasmer_compiler_cranelift::{Cranelift, CraneliftOptLevel};
|
||||
#[cfg(feature = "llvm")]
|
||||
pub use wasmer_compiler_llvm::{LLVMOptLevel, LLVM};
|
||||
|
||||
// TODO: should those be moved into wasmer::vm as well?
|
||||
pub use wasmer_vm::{raise_user_trap, MemoryError};
|
||||
pub(crate) mod vm {
|
||||
//! The `vm` module re-exports wasmer-vm types.
|
||||
use wasmer_vm::InternalStoreHandle;
|
||||
@@ -29,18 +33,3 @@ pub(crate) mod vm {
|
||||
pub(crate) type VMExternGlobal = InternalStoreHandle<VMGlobal>;
|
||||
pub(crate) type VMExternFunction = InternalStoreHandle<VMFunction>;
|
||||
}
|
||||
|
||||
#[cfg(feature = "wat")]
|
||||
pub use wat::parse_bytes as wat2wasm;
|
||||
|
||||
#[cfg(feature = "singlepass")]
|
||||
pub use wasmer_compiler_singlepass::Singlepass;
|
||||
|
||||
#[cfg(feature = "cranelift")]
|
||||
pub use wasmer_compiler_cranelift::{Cranelift, CraneliftOptLevel};
|
||||
|
||||
#[cfg(feature = "llvm")]
|
||||
pub use wasmer_compiler_llvm::{LLVMOptLevel, LLVM};
|
||||
|
||||
#[cfg(feature = "compiler")]
|
||||
pub use wasmer_compiler::{Artifact, EngineBuilder};
|
||||
|
||||
Reference in New Issue
Block a user