diff options
| author | Henry Gressmann <mail@henrygressmann.de> | 2023-12-03 22:54:28 +0100 |
|---|---|---|
| committer | Henry Gressmann <mail@henrygressmann.de> | 2023-12-03 22:54:28 +0100 |
| commit | d1c1e5c6adb85effbd29a82ebde76681468e2504 (patch) | |
| tree | 08ed67e1630985ca86c86b9e0571c6c6f4c7f304 /crates/types | |
| parent | 0b3dc0eb015fadeee3d6417451e6951cb8a6d751 (diff) | |
feat: new tinywasm api
Signed-off-by: Henry Gressmann <mail@henrygressmann.de>
Diffstat (limited to 'crates/types')
| -rw-r--r-- | crates/types/src/lib.rs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/crates/types/src/lib.rs b/crates/types/src/lib.rs index af5cf1a..39ced78 100644 --- a/crates/types/src/lib.rs +++ b/crates/types/src/lib.rs @@ -3,9 +3,10 @@ extern crate alloc; mod instructions; pub use instructions::*; +#[derive(Debug)] pub struct TinyWasmModule { pub version: Option<u16>, - pub start_func: Option<u32>, + pub start_func: Option<FuncAddr>, pub types: Box<[FuncType]>, pub funcs: Box<[Function]>, @@ -97,6 +98,7 @@ pub struct FuncType { } /// A WebAssembly Function +#[derive(Debug)] pub struct Function { pub ty: TypeAddr, pub locals: Box<[ValType]>, |
