From d1c1e5c6adb85effbd29a82ebde76681468e2504 Mon Sep 17 00:00:00 2001 From: Henry Gressmann Date: Sun, 3 Dec 2023 22:54:28 +0100 Subject: feat: new tinywasm api Signed-off-by: Henry Gressmann --- crates/types/src/lib.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'crates/types/src') 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, - pub start_func: Option, + pub start_func: Option, 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]>, -- cgit v1.3.1