-
Notifications
You must be signed in to change notification settings - Fork 280
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add non-streaming Wasm module creation (#1035)
* rename Module::new[_unchecked] to new_streaming[_unchecked] * remove unnecessary pattern matches We are guaranteed that only Payload::CodeSectionEntry follows until the code section is done. * fix doc test * clean-up module parsing * properly process invalid payloads everywhere needed * move streaming parser into its own submodule * re-rename ModuleStreamingParser back to ModuleParser It will be handling both streaming and buffered Wasm module parsing. * update docs of streaming parsing * remove convenience methods * update docs * add non-streaming Wasm module creation * fix internal doc links * use non-streaming Module creation everywhere It should be the new default when applicable. * fix bug in non-streaming parser * apply clippy suggestions * fix buffered parsing * apply more clippy suggestions * test streaming Wasm module compilation in spec testsuite
- Loading branch information
Showing
12 changed files
with
602 additions
and
375 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.