249 releases (149 breaking)

0.228.0 Apr 1, 2025
0.227.1 Mar 7, 2025
0.226.0 Feb 19, 2025
0.222.0 Dec 18, 2024
0.7.2 Jul 7, 2017

#308 in WebAssembly

Download history 213367/week @ 2024-12-22 227822/week @ 2024-12-29 416454/week @ 2025-01-05 423037/week @ 2025-01-12 408853/week @ 2025-01-19 425240/week @ 2025-01-26 490928/week @ 2025-02-02 455926/week @ 2025-02-09 448048/week @ 2025-02-16 453135/week @ 2025-02-23 504359/week @ 2025-03-02 514149/week @ 2025-03-09 568146/week @ 2025-03-16 500815/week @ 2025-03-23 510155/week @ 2025-03-30 570327/week @ 2025-04-06

2,203,709 downloads per month
Used in 1,528 crates (210 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

~170–670KB
~14K SLoC