mirror of
https://github.com/mii443/wasmer.git
synced 2025-12-09 22:28:21 +00:00
feat(deprecated) Remove Instance::load.
This method cannot be ported. Prevent the user to deal with errors by simply removing it.
This commit is contained in:
@@ -3,7 +3,6 @@ struct Instance {
|
|||||||
}
|
}
|
||||||
|
|
||||||
impl Instance {
|
impl Instance {
|
||||||
fn load<T>(&self, _loader: T) -> Result<Self, ()>;
|
|
||||||
fn fun<Args, Rets>(&self, name: &str) -> Result<Func<Args, Rets>, ExportError>;
|
fn fun<Args, Rets>(&self, name: &str) -> Result<Func<Args, Rets>, ExportError>;
|
||||||
fn resolve_func(&self, name: &str) -> Result<usize, ()>;
|
fn resolve_func(&self, name: &str) -> Result<usize, ()>;
|
||||||
fn dyn_func(&self, name: &str) -> Result<DynFunc, ExportError>;
|
fn dyn_func(&self, name: &str) -> Result<DynFunc, ExportError>;
|
||||||
|
|||||||
@@ -61,10 +61,6 @@ impl Instance {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn load<T>(&self, _loader: T) -> Result<Self, ()> {
|
|
||||||
Err(())
|
|
||||||
}
|
|
||||||
|
|
||||||
pub fn func<Args, Rets>(&self, name: &str) -> Result<Func<Args, Rets>, ExportError>
|
pub fn func<Args, Rets>(&self, name: &str) -> Result<Func<Args, Rets>, ExportError>
|
||||||
where
|
where
|
||||||
Args: new::wasmer::WasmTypeList + Clone,
|
Args: new::wasmer::WasmTypeList + Clone,
|
||||||
|
|||||||
Reference in New Issue
Block a user