Fixed RuntimeError start when instantiating wasmer-js

This commit is contained in:
Syrus Akbary
2021-07-22 16:49:20 -07:00
parent c398cae110
commit 14c75e7b51
6 changed files with 62 additions and 11 deletions

View File

@@ -47,8 +47,6 @@ pub use crate::instance::{
};
pub use crate::memory::{LinearMemory, Memory, MemoryError, MemoryStyle};
pub use crate::mmap::Mmap;
#[deprecated(since = "2.1.0", note = "ModuleInfo, ExportsIterator, ImportsIterator should be imported from wasmer_types.")]
pub use wasmer_types::{ModuleInfo, ExportsIterator, ImportsIterator};
pub use crate::probestack::PROBESTACK;
pub use crate::sig_registry::SignatureRegistry;
pub use crate::table::{LinearTable, Table, TableElement, TableStyle};
@@ -62,6 +60,11 @@ pub use crate::vmcontext::{
pub use crate::vmoffsets::{TargetSharedSignatureIndex, VMOffsets};
use loupe::MemoryUsage;
pub use wasmer_types::VMExternRef;
#[deprecated(
since = "2.1.0",
note = "ModuleInfo, ExportsIterator, ImportsIterator should be imported from wasmer_types."
)]
pub use wasmer_types::{ExportsIterator, ImportsIterator, ModuleInfo};
/// Version number of this crate.
pub const VERSION: &str = env!("CARGO_PKG_VERSION");