any one suggest rust library to parser wasm to wat and than edit wat file convert wat to wasm again
Is this what you're looking for?
https://github.com/bytecodealliance/wasm-tools
https://crates.io/crates/wasmparser
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