parity-wasm icon indicating copy to clipboard operation
parity-wasm copied to clipboard

Disassembler?

Open icefoxen opened this issue 7 years ago • 3 comments

Hi all,

I want to write a disassembler that turns compiled wasm back into wast code reversibly; I don't want to just use the official wasm2wast because I'm going to be integrating it into a Rust program.

I'm going to be using your serialization and deserialization routines and types no matter what, so, do you want me to write it as part of this crate and PR it back to you, or should I just make it a separate crate?

Thanks.

icefoxen avatar Jan 10 '18 00:01 icefoxen

Hi!

I think separate crate is more logical solution to this, but it may be hosted in this repo, so that the ci is shared

You aware that wast is called wat now, right? :)

Will be happy to accept PR

NikVolf avatar Jan 10 '18 07:01 NikVolf

All right, thanks! I'll start out by making it a library based on this crate.

...and yeah, but lots of things still call it wast, I suppose. Oh well.

icefoxen avatar Jan 10 '18 14:01 icefoxen

@icefoxen you might be interested in wabt-rs. It contains wasm2wat that might work for you.

pepyakin avatar Jan 12 '18 15:01 pepyakin