212 releases (128 breaking)

0.207.0 May 7, 2024
0.205.0 Apr 18, 2024
0.202.0 Mar 26, 2024
0.118.1 Nov 29, 2023
0.7.2 Jul 7, 2017

#10 in WebAssembly

Download history 257584/week @ 2024-01-25 297327/week @ 2024-02-01 286407/week @ 2024-02-08 297198/week @ 2024-02-15 298585/week @ 2024-02-22 292211/week @ 2024-02-29 273912/week @ 2024-03-07 277994/week @ 2024-03-14 271501/week @ 2024-03-21 259920/week @ 2024-03-28 288980/week @ 2024-04-04 297356/week @ 2024-04-11 296344/week @ 2024-04-18 269686/week @ 2024-04-25 275475/week @ 2024-05-02 235090/week @ 2024-05-09

1,132,297 downloads per month
Used in 1,113 crates (165 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

~83–610KB
~11K SLoC