feat(runtime-c-api) Extract the import module.

This commit is contained in:
Ivan Enderlin
2019-03-29 15:50:16 +01:00
parent 9c4696eb5b
commit 361ff81db7
5 changed files with 370 additions and 357 deletions

View File

@ -2,10 +2,11 @@
use crate::{
error::{update_last_error, CApiError},
export::{wasmer_exports_t, NamedExport, NamedExports},
export::{wasmer_exports_t, wasmer_import_export_kind, NamedExport, NamedExports},
import::wasmer_import_t,
memory::wasmer_memory_t,
value::{wasmer_value, wasmer_value_t, wasmer_value_tag},
wasmer_import_export_kind, wasmer_import_t, wasmer_result_t,
wasmer_result_t,
};
use libc::{c_char, c_int, c_void, uint32_t, uint8_t};
use std::{collections::HashMap, ffi::CStr, slice};