Crates.io | wasmprinter |
lib.rs | wasmprinter |
version | |
source | src |
created_at | 2019-11-18 17:42:38.354072 |
updated_at | 2024-12-02 22:48:17.538548 |
description | Rust converter from the WebAssembly binary format to the text format. |
homepage | https://github.com/bytecodealliance/wasm-tools/tree/main/crates/wasmprinter |
repository | https://github.com/bytecodealliance/wasm-tools/tree/main/crates/wasmprinter |
max_upload_size | |
id | 182250 |
Cargo.toml error: | TOML parse error at line 19, column 1 | 19 | autolib = false | ^^^^^^^ unknown field `autolib`, expected one of `name`, `version`, `edition`, `authors`, `description`, `readme`, `license`, `repository`, `homepage`, `documentation`, `build`, `resolver`, `links`, `default-run`, `default_dash_run`, `rust-version`, `rust_dash_version`, `rust_version`, `license-file`, `license_dash_file`, `license_file`, `licenseFile`, `license_capital_file`, `forced-target`, `forced_dash_target`, `autobins`, `autotests`, `autoexamples`, `autobenches`, `publish`, `metadata`, `keywords`, `categories`, `exclude`, `include` |
size | 0 |
wasmprinter
A Bytecode Alliance project
A Rust parser for printing a WebAssembly binary in the WebAssembly Text Format (WAT).
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)?;
// ...
}
This project is licensed under the Apache 2.0 license with the LLVM exception. See LICENSE for more details.
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.