mirror of
https://github.com/fluencelabs/wasmer
synced 2024-12-14 14:45:40 +00:00
15 lines
411 B
Rust
15 lines
411 B
Rust
use crate::{module::Module, types::FuncIndex, vm};
|
|
use std::ptr::NonNull;
|
|
|
|
pub use crate::mmap::{Mmap, Protect};
|
|
pub use crate::sig_registry::SigRegistry;
|
|
|
|
pub trait Compiler {
|
|
/// Compiles a `Module` from WebAssembly binary format
|
|
fn compile(&self, wasm: &[u8]) -> Result<Module, String>;
|
|
}
|
|
|
|
pub trait FuncResolver {
|
|
fn get(&self, module: &Module, index: FuncIndex) -> Option<NonNull<vm::Func>>;
|
|
}
|