mirror of
https://github.com/mii443/wasmer.git
synced 2025-12-17 01:28:44 +00:00
Merge branch 'master' into engine
# Conflicts: # lib/api/src/lib.rs # lib/engine-jit/src/engine.rs # lib/engine-jit/src/module.rs
This commit is contained in:
@@ -1,4 +1,6 @@
|
||||
use crate::error::InstantiationError;
|
||||
use std::sync::Arc;
|
||||
use wasmer_runtime::InstanceHandle;
|
||||
use wasmer_runtime::Module;
|
||||
|
||||
use downcast_rs::{impl_downcast, DowncastSync};
|
||||
@@ -6,6 +8,16 @@ use downcast_rs::{impl_downcast, DowncastSync};
|
||||
/// The `CompiledModule` trait is used by engine implementors, such
|
||||
/// as a JIT or Native execution.
|
||||
pub trait CompiledModule: DowncastSync {
|
||||
/// Finish instantiation of a `InstanceHandle`
|
||||
///
|
||||
/// # Unsafety
|
||||
///
|
||||
/// See `InstanceHandle::finish_instantiation`
|
||||
unsafe fn finish_instantiation(
|
||||
&self,
|
||||
handle: &InstanceHandle,
|
||||
) -> Result<(), InstantiationError>;
|
||||
|
||||
/// Return a reference-counting pointer to a module.
|
||||
fn module(&self) -> &Arc<Module>;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user