222 releases (135 breaking)

0.214.0 Jul 16, 2024
0.212.0 Jun 27, 2024
0.202.0 Mar 26, 2024
0.118.1 Nov 29, 2023
0.7.2 Jul 7, 2017

#22 in WebAssembly

Download history 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 290732/week @ 2024-05-09 305683/week @ 2024-05-16 304282/week @ 2024-05-23 331045/week @ 2024-05-30 299588/week @ 2024-06-06 326356/week @ 2024-06-13 321950/week @ 2024-06-20 309855/week @ 2024-06-27 290555/week @ 2024-07-04 324369/week @ 2024-07-11 276144/week @ 2024-07-18

1,256,885 downloads per month
Used in 1,141 crates (172 directly)

Apache-2.0 WITH LLVM-exception

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

~0.2–0.9MB
~16K SLoC