232 releases (142 breaking)

0.221.2 Dec 2, 2024
0.221.0 Nov 27, 2024
0.215.0 Jul 31, 2024
0.202.0 Mar 26, 2024
0.7.2 Jul 7, 2017

#6 in WebAssembly

Download history 301898/week @ 2024-08-22 299199/week @ 2024-08-29 315818/week @ 2024-09-05 295106/week @ 2024-09-12 298318/week @ 2024-09-19 299971/week @ 2024-09-26 321931/week @ 2024-10-03 324202/week @ 2024-10-10 346956/week @ 2024-10-17 340766/week @ 2024-10-24 355992/week @ 2024-10-31 330952/week @ 2024-11-07 346324/week @ 2024-11-14 356636/week @ 2024-11-21 400524/week @ 2024-11-28 350713/week @ 2024-12-05

1,508,961 downloads per month
Used in 1,274 crates (192 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

~175–680KB
~14K SLoC