tinywasm-parser
This crate provides a parser that can parse WebAssembly modules into a TinyWasm module.
It uses my fork of the wasmparser
crate that has been modified to be compatible with no_std
environments.
Features
std
: Enables the use ofstd
andstd::io
for parsing from files and streams.logging
: Enables logging of the parsing process using thelog
crate.
Usage
use Parser;
let bytes = include_bytes!;
let parser = new;
let module = parser.parse_module_bytes.unwrap;
let mudule = parser.parse_module_file.unwrap;
let module = parser.parse_module_stream.unwrap;