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: Dec 23 2024 at 12:05 UTC