Stream: general

Topic: library for parser binary to wat and edit


view this post on Zulip jimmysl lee (May 18 2022 at 02:14):

any one suggest rust library to parser wasm to wat and than edit wat file convert wat to wasm again

view this post on Zulip Mendy Berger (May 19 2022 at 11:46):

Is this what you're looking for?

https://github.com/bytecodealliance/wasm-tools
https://crates.io/crates/wasmparser

Low level tooling for WebAssembly in Rust. Contribute to bytecodealliance/wasm-tools development by creating an account on GitHub.

view this post on Zulip Alex Crichton (May 19 2022 at 14:09):

To parse wasm to wat you can use the wasmprinter crate in the wasm-tools repository, and to go the other direction of converting wat to wasm you can use the wat crate. The wast crate provides an AST of the text format but it's not built to be easy to work with.


Last updated: Nov 22 2024 at 17:03 UTC