Crates.io | wasmparser |
lib.rs | wasmparser |
version | 0.219.1 |
source | src |
created_at | 2017-06-02 16:58:49.610864 |
updated_at | 2024-10-10 15:48:20.683799 |
description | A simple event-driven library for parsing WebAssembly binary files. |
homepage | https://github.com/bytecodealliance/wasm-tools/tree/main/crates/wasmparser |
repository | https://github.com/bytecodealliance/wasm-tools/tree/main/crates/wasmparser |
max_upload_size | |
id | 17354 |
size | 1,304,945 |
wasmparser
: A WebAssembly Binary ParserA Bytecode Alliance project
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 and examples can be found at https://docs.rs/wasmparser/