Moved TableStyle and MemoryStyle to wasmer-types (and compiler-single pass do not depend from vm anymore)

This commit is contained in:
ptitSeb
2022-03-23 09:55:08 +01:00
parent eb7ef52521
commit e745ceab7a
13 changed files with 123 additions and 117 deletions

View File

@@ -43,11 +43,11 @@ pub use crate::instance::{
ImportFunctionEnv, ImportInitializerFuncPtr, InstanceAllocator, InstanceHandle,
WeakOrStrongInstanceRef,
};
pub use crate::memory::{LinearMemory, Memory, MemoryError, MemoryStyle};
pub use crate::memory::{LinearMemory, Memory};
pub use crate::mmap::Mmap;
pub use crate::probestack::PROBESTACK;
pub use crate::sig_registry::SignatureRegistry;
pub use crate::table::{LinearTable, Table, TableElement, TableStyle};
pub use crate::table::{LinearTable, Table, TableElement};
pub use crate::trap::*;
pub use crate::vmcontext::{
VMCallerCheckedAnyfunc, VMContext, VMDynamicFunctionContext, VMFunctionBody,
@@ -56,11 +56,13 @@ pub use crate::vmcontext::{
VMTrampoline,
};
use loupe::MemoryUsage;
pub use wasmer_types::TableStyle;
#[deprecated(
since = "2.1.0",
note = "ModuleInfo, ExportsIterator, ImportsIterator should be imported from wasmer_types."
)]
pub use wasmer_types::{ExportsIterator, ImportsIterator, ModuleInfo};
pub use wasmer_types::{MemoryError, MemoryStyle};
pub use wasmer_types::{
TargetSharedSignatureIndex, VMBuiltinFunctionIndex, VMExternRef, VMOffsets,
};