doc(deprecated) Start documenting the diff between the old and the new API.

This commit is contained in:
Ivan Enderlin
2020-06-30 16:42:12 +02:00
parent 58d8b7f4f2
commit 921c48ea77
4 changed files with 50 additions and 0 deletions

View 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>]>
}