Crate wasmparser

source ·
Expand description

A simple event-driven library for parsing WebAssembly binary files (or streams).

The parser library reports events as they happend and only stores parsing information for a brief period of time, making it very fast and memory-efficient. The event-driven model, however, has some drawbacks. If you need random access to the entire WebAssembly data-structure, this is not the right library for you. You could however, build such a data-structure using this library.

Structs

A binary reader of the WebAssembly structures and types.
A br_table entries representation.
An IEEE binary32 immediate floating point value, represented as a u32 containing the bitpattern.
An IEEE binary64 immediate floating point value, represented as a u64 containing the bitpattern.
Reads top-level WebAssembly file structure: header and sections.
The Parser type. A simple event-driven parser of WebAssembly binary format. The read(&mut self) is used to iterate through WebAssembly records.
Bytecode range in the WebAssembly module.

Enums

Traits

Functions

Test whether the given buffer contains a valid WebAssembly module, analogous to WebAssembly.validate in the JS API.

Type Definitions