Sunbeam Studios

Our open-source projects, here for you!

wasmparser (0.244.0)

Published 2026-03-26 11:05:23 +00:00 by siennathesane

Installation

[registry]
default = "gitea"

[registries.gitea]
index = "sparse+" # Sparse index
# index = "" # Git

[net]
git-fetch-with-cli = true
cargo add wasmparser@0.244.0

About this package

A simple event-driven library for parsing WebAssembly binary files.

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

ID Version
bitflags ^2.4.1
hashbrown ^0.15.2
indexmap ^2.7.0
semver ^1.0.0
serde ^1.0.166
anyhow ^1.0.58
criterion ^0.5.1
env_logger ^0.11
log ^0.4.17
once_cell ^1.13.0
rayon ^1.3

Keywords

parser WebAssembly wasm
Details
Cargo
2026-03-26 11:05:23 +00:00
1
Yury Delendik <ydelendik@mozilla.com>
Apache-2.0 WITH LLVM-exception OR Apache-2.0 OR MIT
259 KiB
Assets (1)
Versions (1) View all
0.244.0 2026-03-26