210 releases (126 breaking)

new 0.205.0 Apr 18, 2024
0.203.0 Apr 12, 2024
0.202.0 Mar 26, 2024
0.118.1 Nov 29, 2023
0.7.2 Jul 7, 2017

#16 in WebAssembly

Download history 106996/week @ 2023-12-23 194987/week @ 2023-12-30 260442/week @ 2024-01-06 279873/week @ 2024-01-13 248932/week @ 2024-01-20 283141/week @ 2024-01-27 286681/week @ 2024-02-03 296082/week @ 2024-02-10 292837/week @ 2024-02-17 296306/week @ 2024-02-24 285432/week @ 2024-03-02 269876/week @ 2024-03-09 285226/week @ 2024-03-16 257589/week @ 2024-03-23 282197/week @ 2024-03-30 235559/week @ 2024-04-06

1,102,333 downloads per month
Used in 1,060 crates (157 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

~1MB
~18K SLoC