234 releases (144 breaking)

new 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

#8 in WebAssembly

Download history 310922/week @ 2024-09-20 297744/week @ 2024-09-27 331253/week @ 2024-10-04 324844/week @ 2024-10-11 346342/week @ 2024-10-18 340288/week @ 2024-10-25 354187/week @ 2024-11-01 328984/week @ 2024-11-08 356647/week @ 2024-11-15 346443/week @ 2024-11-22 417389/week @ 2024-11-29 422073/week @ 2024-12-06 397602/week @ 2024-12-13 249595/week @ 2024-12-20 214236/week @ 2024-12-27 377797/week @ 2025-01-03

1,314,758 downloads per month
Used in 1,297 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

~165–660KB
~13K SLoC