mirror of
https://github.com/fluencelabs/wasmer
synced 2025-03-16 16:20:49 +00:00
Document Compiler trait
This commit is contained in:
parent
a5b4cc21f6
commit
4a7560dcd3
@ -2,5 +2,6 @@ use crate::runtime::module::Module;
|
||||
use std::sync::Arc;
|
||||
|
||||
pub trait Compiler {
|
||||
/// Compiles a `Module` from WebAssembly binary format
|
||||
fn compile(&self, wasm: &[u8]) -> Result<Arc<Module>, String>;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user