Registry / utility / wasmprinter

wasmprinter

JSON →
library0.251.0rscratesunverified

Rust converter from the WebAssembly binary format to the text format, enabling human-readable Wasm output.

# Cargo.toml [dependencies] wasmprinter = "0.251.0"
INSTALL
IMPORT
SIG · WASMPRINTER
W
wasmprinter
utilityrustv0.251.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.

print_bytes
use wasmprinter::print_bytes;

Converts a WebAssembly binary file to its text representation (WAT).

use wasmprinter::print_bytes; fn main() -> Result<(), Box<dyn std::error::Error>> { let wasm_bytes = std::fs::read("input.wasm")?; let wat = print_bytes(&wasm_bytes)?; println!("{}", wat); Ok(()) }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.251.0latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
10 hits · last 30 days
node
10
Resources
wasmprinter — cargo add wasmprinter · libregistry