mirror of
https://github.com/mii443/wasmer.git
synced 2025-12-09 06:08:29 +00:00
doc(deprecated) Start documenting the diff between the old and the new API.
This commit is contained in:
10
lib/deprecated/runtime-core/doc/new-api/module.rs
Normal file
10
lib/deprecated/runtime-core/doc/new-api/module.rs
Normal file
@@ -0,0 +1,10 @@
|
||||
struct Module {}
|
||||
|
||||
impl Module {
|
||||
fn instantiate(&self, import_object: &ImportObject) -> Result<Instance>;
|
||||
fn cache(&self) -> Result<Artifact, CacheError>;
|
||||
fn info(&self) -> &ModuleInfo;
|
||||
fn imports(&self) -> Vec<ImportDescriptor>;
|
||||
fn exports(&self) -> Vec<ExportDescriptor>;
|
||||
fn custom_sections(&self, key: impl AsRef<str>) -> Option<&[Vec<u8>]>
|
||||
}
|
||||
Reference in New Issue
Block a user