248 releases (148 breaking)

new 0.227.1 Mar 7, 2025
0.226.0 Feb 19, 2025
0.222.0 Dec 18, 2024
0.221.0 Nov 27, 2024
0.7.2 Jul 7, 2017

#1079 in WebAssembly

Download history 356636/week @ 2024-11-21 399903/week @ 2024-11-28 423049/week @ 2024-12-05 402776/week @ 2024-12-12 288041/week @ 2024-12-19 200987/week @ 2024-12-26 343435/week @ 2025-01-02 443057/week @ 2025-01-09 398248/week @ 2025-01-16 437410/week @ 2025-01-23 434734/week @ 2025-01-30 494841/week @ 2025-02-06 423171/week @ 2025-02-13 477010/week @ 2025-02-20 470363/week @ 2025-02-27 504473/week @ 2025-03-06

1,958,142 downloads per month
Used in 1,480 crates (203 directly)

Apache-2.0…

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