1
0
Fork 0
firefox/third_party/rust/wasmparser
Daniel Baumann 5e9a113729
Adding upstream version 140.0.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
2025-06-25 09:37:52 +02:00
..
benches Adding upstream version 140.0. 2025-06-25 09:37:52 +02:00
examples Adding upstream version 140.0. 2025-06-25 09:37:52 +02:00
src Adding upstream version 140.0. 2025-06-25 09:37:52 +02:00
tests Adding upstream version 140.0. 2025-06-25 09:37:52 +02:00
.cargo-checksum.json Adding upstream version 140.0. 2025-06-25 09:37:52 +02:00
Cargo.lock Adding upstream version 140.0. 2025-06-25 09:37:52 +02:00
Cargo.toml Adding upstream version 140.0. 2025-06-25 09:37:52 +02:00
README.md Adding upstream version 140.0. 2025-06-25 09:37:52 +02:00

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/