234 releases (144 breaking)

0.223.0 Jan 8, 2025
0.222.0 Dec 18, 2024
0.221.2 Dec 2, 2024
0.221.0 Nov 27, 2024
0.7.2 Jul 7, 2017

#7 in WebAssembly

Download history 305060/week @ 2024-09-29 328646/week @ 2024-10-06 327717/week @ 2024-10-13 349685/week @ 2024-10-20 340090/week @ 2024-10-27 356213/week @ 2024-11-03 327511/week @ 2024-11-10 360848/week @ 2024-11-17 353407/week @ 2024-11-24 422797/week @ 2024-12-01 422373/week @ 2024-12-08 397441/week @ 2024-12-15 213367/week @ 2024-12-22 227822/week @ 2024-12-29 416454/week @ 2025-01-05 400781/week @ 2025-01-12

1,288,315 downloads per month
Used in 1,306 crates (196 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

~180–680KB
~14K SLoC