No description
Find a file
Daniel Baumann 1834c42c5e
Releasing fastforward version 0.239.0-1~ffwd13+u1.
Signed-off-by: Daniel Baumann <daniel@debian.org>
2026-05-22 19:18:09 +02:00
debian Releasing fastforward version 0.239.0-1~ffwd13+u1. 2026-05-22 19:18:09 +02:00
src Adding upstream version 0.239.0. 2026-05-22 19:17:54 +02:00
tests Adding upstream version 0.239.0. 2026-05-22 19:17:54 +02:00
.cargo_vcs_info.json Adding upstream version 0.239.0. 2026-05-22 19:17:54 +02:00
Cargo.lock Adding upstream version 0.239.0. 2026-05-22 19:17:54 +02:00
Cargo.toml Adding upstream version 0.239.0. 2026-05-22 19:17:54 +02:00
Cargo.toml.orig Adding upstream version 0.239.0. 2026-05-22 19:17:54 +02:00
README.md Adding upstream version 0.239.0. 2026-05-22 19:17:54 +02:00

wasmprinter

A Bytecode Alliance project

A Rust parser for printing a WebAssembly binary in the WebAssembly Text Format (WAT).

Crates.io version Download docs.rs docs

Usage

Add wasmprinter to your Cargo.toml

$ cargo add wasmprinter

You can then convert wasm binaries to strings like so:

fn main() -> Result<()> {
    let foo_wat = wasmprinter::print_file("path/to/foo.wasm")?;

    let binary = /* ... */;
    let wat = wasmprinter::print_bytes(&binary)?;

    // ...
}

License

This project is licensed under the Apache 2.0 license with the LLVM exception. See LICENSE for more details.

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in this project by you, as defined in the Apache-2.0 license, shall be licensed as above, without any additional terms or conditions.