Fix memory api to be sound

This commit is contained in:
Lachlan Sneff
2019-01-28 10:59:05 -08:00
parent a58f3318f0
commit 9b491ec95d
7 changed files with 251 additions and 32 deletions

View File

@ -24,11 +24,11 @@ impl IsExport for Export {
///
/// # Usage:
/// ```
/// # use wasmer_runtime_core::imports;
/// # use wasmer_runtime_core::{imports, func};
/// # use wasmer_runtime_core::vm::Ctx;
/// let import_object = imports! {
/// "env" => {
/// "foo" => foo<[i32] -> [i32]>,
/// "foo" => func!(foo, [i32] -> [i32]),
/// },
/// };
///