Registry / utility / wasmparser

wasmparser

JSON →
library0.245.0rscratesunverified

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

# Cargo.toml [dependencies] wasmparser = "0.245.0"
INSTALL
IMPORT
SIG · WASMPARSER
W
wasmparser
utilityrustv0.245.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Parser
use wasmparser::Parser;

Parses a minimal WebAssembly module and prints each payload.

use wasmparser::Parser; fn main() { let wasm_bytes: &[u8] = &[0x00, 0x61, 0x73, 0x6d, 0x01, 0x00, 0x00, 0x00]; let parser = Parser::new(0); for payload in parser.parse_all(wasm_bytes) { match payload { Ok(p) => println!("Parsed: {:?}", p), Err(e) => eprintln!("Error: {:?}", e), } } }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.245.0latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
8 hits · last 30 days
node
8
Resources
wasmparser — cargo add wasmparser · libregistry