tinywasm-parser
This crate provides a parser that can parse WebAssembly modules into a TinyWasm module. It is based on
wasmparser_nostd and used by tinywasm.
Features
std: Enables the use ofstdandstd::iofor parsing from files and streams.logging: Enables logging of the parsing process using thelogcrate.
Usage
use ;
let bytes = include_bytes!;
let parser = new;
let module: TinyWasmModule = parser.parse_module_bytes.unwrap;
let mudule: TinyWasmModule = parser.parse_module_file.unwrap;
let module: TinyWasmModule = parser.parse_module_stream.unwrap;