Update example to latest Tunables trait

This commit is contained in:
Simon Warta
2020-10-28 00:30:13 +01:00
parent f00b3b3312
commit 984d478d05
2 changed files with 77 additions and 28 deletions

View File

@@ -81,7 +81,17 @@ pub use wasmer_types::{
Atomically, Bytes, GlobalInit, LocalFunctionIndex, MemoryView, Pages, ValueType,
WASM_MAX_PAGES, WASM_MIN_PAGES, WASM_PAGE_SIZE,
};
// TODO: should those be moved into wasmer::vm as well?
pub use wasmer_vm::{raise_user_trap, Export, MemoryError};
pub mod vm {
//! We use the vm module for re-exporting wasmer-vm types
pub use wasmer_vm::{
Memory, MemoryError, MemoryStyle, Table, TableStyle, VMMemoryDefinition, VMTableDefinition,
};
}
#[cfg(feature = "wat")]
pub use wat::parse_bytes as wat2wasm;