wasmparser

Crates.iowasmparser
lib.rswasmparser
version0.239.0
created_at2017-06-02 16:58:49.610864+00
updated_at2025-09-09 16:43:39.64917+00
descriptionA simple event-driven library for parsing WebAssembly binary files.
homepagehttps://github.com/bytecodealliance/wasm-tools/tree/main/crates/wasmparser
repositoryhttps://github.com/bytecodealliance/wasm-tools/tree/main/crates/wasmparser
max_upload_size
id17354
size1,448,598
(wasmtime-publish)

documentation

README

wasmparser: A WebAssembly Binary Parser

A Bytecode Alliance project

crates.io link docs.rs docs

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

The library reports events as they happen and only stores parsing information for a brief period of time, making it 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.

To get started, create a Parser using Parser::new and then follow the examples documented for Parser::parse or Parser::parse_all.

Documentation

Documentation and examples can be found at https://docs.rs/wasmparser/

Commit count: 3062

cargo fmt