211 releases (127 breaking)

0.206.0 Apr 25, 2024
0.204.0 Apr 16, 2024
0.202.0 Mar 26, 2024
0.118.1 Nov 29, 2023
0.7.2 Jul 7, 2017

#9 in WebAssembly

Download history 277407/week @ 2024-01-15 250314/week @ 2024-01-22 283201/week @ 2024-01-29 291927/week @ 2024-02-05 297176/week @ 2024-02-12 292643/week @ 2024-02-19 297341/week @ 2024-02-26 278305/week @ 2024-03-04 266908/week @ 2024-03-11 287046/week @ 2024-03-18 255619/week @ 2024-03-25 284084/week @ 2024-04-01 282602/week @ 2024-04-08 299278/week @ 2024-04-15 295601/week @ 2024-04-22 241659/week @ 2024-04-29

1,135,052 downloads per month
Used in 1,098 crates (162 directly)

Apache-2.0 WITH LLVM-exception

1MB
20K 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

~2MB
~32K SLoC