246 releases (147 breaking)

new 0.226.0 Feb 19, 2025
0.224.1 Feb 5, 2025
0.222.0 Dec 18, 2024
0.221.0 Nov 27, 2024
0.7.2 Jul 7, 2017

#426 in WebAssembly

Download history 354384/week @ 2024-10-30 338518/week @ 2024-11-06 331545/week @ 2024-11-13 367279/week @ 2024-11-20 381220/week @ 2024-11-27 425524/week @ 2024-12-04 406929/week @ 2024-12-11 337498/week @ 2024-12-18 195872/week @ 2024-12-25 300274/week @ 2025-01-01 439160/week @ 2025-01-08 402330/week @ 2025-01-15 420677/week @ 2025-01-22 422176/week @ 2025-01-29 514743/week @ 2025-02-05 356947/week @ 2025-02-12

1,781,673 downloads per month
Used in 1,456 crates (200 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

~175–670KB
~14K SLoC