linera_wasmer/sys/
mod.rs

1pub(crate) mod engine;
2pub(crate) mod errors;
3pub(crate) mod extern_ref;
4pub(crate) mod externals;
5pub(crate) mod instance;
6pub(crate) mod mem_access;
7pub(crate) mod module;
8pub(super) mod tunables;
9pub(crate) mod typed_function;
10
11pub use crate::sys::engine::{get_default_compiler_config, NativeEngineExt};
12pub use crate::sys::tunables::BaseTunables;
13#[cfg(feature = "compiler")]
14pub use wasmer_compiler::{
15    wasmparser, CompilerConfig, FunctionMiddleware, MiddlewareReaderState, ModuleMiddleware,
16};
17pub use wasmer_compiler::{Artifact, EngineBuilder, Features, Tunables};
18#[cfg(feature = "cranelift")]
19pub use wasmer_compiler_cranelift::{Cranelift, CraneliftOptLevel};
20#[cfg(feature = "llvm")]
21pub use wasmer_compiler_llvm::{LLVMOptLevel, LLVM};
22#[cfg(feature = "singlepass")]
23pub use wasmer_compiler_singlepass::Singlepass;
24
25pub use wasmer_vm::VMConfig;
26
27pub(crate) mod vm {
28    //! The `vm` module re-exports wasmer-vm types.
29    use wasmer_vm::InternalStoreHandle;
30    pub(crate) use wasmer_vm::{
31        VMExtern, VMExternRef, VMFuncRef, VMFunction, VMFunctionBody, VMFunctionEnvironment,
32        VMGlobal, VMInstance, VMMemory, VMTable, VMTrampoline,
33    };
34
35    pub(crate) type VMExternTable = InternalStoreHandle<VMTable>;
36    pub(crate) type VMExternMemory = InternalStoreHandle<VMMemory>;
37    pub(crate) type VMExternGlobal = InternalStoreHandle<VMGlobal>;
38    pub(crate) type VMExternFunction = InternalStoreHandle<VMFunction>;
39
40    pub type VMFunctionCallback = *const VMFunctionBody;
41}