245 releases (146 breaking)

new 0.225.0 Feb 4, 2025
0.224.0 Jan 22, 2025
0.222.0 Dec 18, 2024
0.221.0 Nov 27, 2024
0.7.2 Jul 7, 2017

#426 in WebAssembly

Download history 347534/week @ 2024-10-22 344526/week @ 2024-10-29 349735/week @ 2024-11-05 326462/week @ 2024-11-12 369029/week @ 2024-11-19 365638/week @ 2024-11-26 429182/week @ 2024-12-03 418329/week @ 2024-12-10 374223/week @ 2024-12-17 192453/week @ 2024-12-24 266221/week @ 2024-12-31 431255/week @ 2025-01-07 408083/week @ 2025-01-14 413995/week @ 2025-01-21 428688/week @ 2025-01-28 423470/week @ 2025-02-04

1,750,210 downloads per month
Used in 1,355 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