Function ceres_runtime::util::scan_imports [−][src]
pub fn scan_imports(module: &Module) -> Result<(u32, Option<u32>), &'static str>
Expand description
Scan an import section if any.
This accomplishes two tasks:
- checks any imported function against defined host functions set, incl. their signatures.
- if there is a memory import, returns it’s descriptor
import_fn_banlist
: list of function names that are disallowed to be imported