228 releases (140 breaking)

0.219.1 Oct 10, 2024
0.218.0 Sep 30, 2024
0.215.0 Jul 31, 2024
0.202.0 Mar 26, 2024
0.7.2 Jul 7, 2017

#317 in WebAssembly

Download history 333154/week @ 2024-07-19 329546/week @ 2024-07-26 319352/week @ 2024-08-02 317649/week @ 2024-08-09 326288/week @ 2024-08-16 296549/week @ 2024-08-23 307786/week @ 2024-08-30 302463/week @ 2024-09-06 287989/week @ 2024-09-13 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 298074/week @ 2024-11-01

1,369,090 downloads per month
Used in 1,243 crates (187 directly)

Apache-2.0…

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

~0.2–0.9MB
~16K SLoC