210 releases (126 breaking)

new 0.205.0 Apr 18, 2024
0.203.0 Apr 12, 2024
0.202.0 Mar 26, 2024
0.118.1 Nov 29, 2023
0.7.2 Jul 7, 2017

#17 in WebAssembly

Download history 251800/week @ 2024-01-03 269993/week @ 2024-01-10 270360/week @ 2024-01-17 255802/week @ 2024-01-24 293917/week @ 2024-01-31 284844/week @ 2024-02-07 294179/week @ 2024-02-14 300060/week @ 2024-02-21 298031/week @ 2024-02-28 271603/week @ 2024-03-06 271834/week @ 2024-03-13 279645/week @ 2024-03-20 253697/week @ 2024-03-27 292914/week @ 2024-04-03 292122/week @ 2024-04-10 239056/week @ 2024-04-17

1,124,165 downloads per month
Used in 1,067 crates (158 directly)

Apache-2.0 WITH LLVM-exception

1MB
20K SLoC

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/

Dependencies

~1MB
~18K SLoC