pub mod vm; mod backing; mod types; mod memory; mod backend; mod module; mod instance; mod table; mod sig_registry; pub use backend::Compiler; pub use instance::{Instance, Imports, Import}; pub use module::{ModuleName, ItemName, Module}; /// Compile a webassembly module using the provided compiler and linked with the provided imports. pub fn compile(compiler: &dyn Compiler, wasm: &[u8], imports: &Imports) -> Result, String> { let module = compiler.compile(wasm)?; Instance::new(module, imports) }