Crate wasmprinter
source ·Expand description
A crate to convert a WebAssembly binary to its textual representation in the WebAssembly Text Format (WAT).
This crate is intended for developer toolchains and debugging, supporting human-readable versions of a wasm binary. This can also be useful when developing wasm toolchain support in Rust for various purposes like testing and debugging and such.
Structs§
- Configuration used to print a WebAssembly binary.
- An adapter between the
std::fmt::Writetrait andPrint. - An adapter between the
std::io::Writetrait andPrint. - An adapter between the
std::fmt::Writetrait andtermcolor::WriteColor.
Traits§
- Trait used to print WebAssembly modules in this crate.
Functions§
- Prints an in-memory
wasmbinary blob into an in-memoryStringwhich is its textual representation. - Reads a WebAssembly
filefrom the filesystem and then prints it into an in-memoryString.