232 releases (142 breaking)

0.221.2 Dec 2, 2024
0.221.0 Nov 27, 2024
0.215.0 Jul 31, 2024
0.202.0 Mar 26, 2024
0.7.2 Jul 7, 2017

#6 in WebAssembly

Download history 302091/week @ 2024-08-21 301485/week @ 2024-08-28 315360/week @ 2024-09-04 296807/week @ 2024-09-11 297510/week @ 2024-09-18 300203/week @ 2024-09-25 310780/week @ 2024-10-02 327444/week @ 2024-10-09 338316/week @ 2024-10-16 349402/week @ 2024-10-23 354384/week @ 2024-10-30 338518/week @ 2024-11-06 331545/week @ 2024-11-13 367279/week @ 2024-11-20 381647/week @ 2024-11-27 425520/week @ 2024-12-04

1,569,335 downloads per month
Used in 1,274 crates (192 directly)

Apache-2.0…

1.5MB
26K 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

~175–680KB
~14K SLoC