From 9893a51d2712f82a2ee57316a66bc26500eb3fdd Mon Sep 17 00:00:00 2001 From: Henry Date: Sun, 9 Aug 2026 16:11:57 +0200 Subject: feat: add reusable host imports and simplify function calls - make host definitions reusable across stores with gc-aware import linking - reorganize function calls, resumable execution, and typed value handling - expand typed tuples to arity 20 and update parser and store APIs Signed-off-by: Henry --- crates/parser/README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'crates/parser/README.md') diff --git a/crates/parser/README.md b/crates/parser/README.md index 05c2af2..cf1a6c4 100644 --- a/crates/parser/README.md +++ b/crates/parser/README.md @@ -16,10 +16,10 @@ use tinywasm_parser::{Parser, ParserOptions}; let bytes = include_bytes!("./file.wasm"); -let parser = Parser::new(); +let parser = Parser::default(); let module = parser.parse_module_bytes(bytes)?; -let parser = Parser::with_options(ParserOptions::default().with_rewrite_optimization(false)); +let parser = Parser::new(ParserOptions::default().with_rewrite_optimization(false)); let module = parser.parse_module_bytes(bytes)?; let module = parser.parse_module_file("path/to/file.wasm")?; @@ -27,4 +27,4 @@ let mut stream = std::fs::File::open("path/to/file.wasm")?; let module = parser.parse_module_stream(&mut stream)?; ``` -If you just want the default configuration, the top-level `parse_bytes`, `parse_file`, and `parse_stream` helpers are thin wrappers around `Parser::new()`. +If you just want the default configuration, the top-level `parse_bytes`, `parse_file`, and `parse_stream` helpers are thin wrappers around `Parser::default()`. -- cgit v1.3.1