252 releases (152 breaking)

new 0.231.0 May 23, 2025
0.229.0 Apr 17, 2025
0.227.1 Mar 7, 2025
0.222.0 Dec 18, 2024
0.7.2 Jul 7, 2017

#63 in WebAssembly

Download history 488788/week @ 2025-02-01 457890/week @ 2025-02-08 444520/week @ 2025-02-15 457146/week @ 2025-02-22 502421/week @ 2025-03-01 496070/week @ 2025-03-08 587285/week @ 2025-03-15 502369/week @ 2025-03-22 508420/week @ 2025-03-29 600520/week @ 2025-04-05 436293/week @ 2025-04-12 514922/week @ 2025-04-19 461509/week @ 2025-04-26 502952/week @ 2025-05-03 459317/week @ 2025-05-10 483840/week @ 2025-05-17

1,985,689 downloads per month
Used in 1,575 crates (211 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

~165–670KB
~13K SLoC