Is there some crate for visiting WASM AST in Rust?


#1

I’m trying to start a hobby project, to learn Rust and WASM, and read a WASM file, analyze and/or transpile it to another format. I found only one crate to do this, binaryen-rs that wraps the binaryen C API, but it is intended for produce WASM, not for analysis.

Is there another library for this kind of work? Thanks in advance.

[EDIT] I’m new in Rust Forums, just realized that this is the internal list, not user list. I tried to delete this post, but can’t find the way. My apologies.


#2

There is this crate (which wasm-gc uses, e.g.), but I have no idea if the API is usable for what you have in mind:


#4

Yes, this is for what I’m looking for. Thank you!