unwasm icon indicating copy to clipboard operation
unwasm copied to clipboard

Tools to operate and inspect `.wasm` file

Open pi0 opened this issue 2 years ago • 2 comments

I am mainly thinking of introducing mini utils to inspect .wasm binaries for commonly useful features. One particular useful usage would be scanning exports for plugins (#2) and also detecting global imports.

It can be also exported as a CLI script and also utils.

Ideas welcome for util useful tools.

pi0 avatar Dec 27 '23 17:12 pi0

I recommend you would try the wasm tools. you might find out something hints. https://github.com/bytecodealliance/wasm-tools

kazupon avatar Jan 22 '24 17:01 kazupon

Thanks dear @kazupon yes i am aware of this project. The goals of this tracker is to most importantly expose a nice JS API to inspect and work with .wasm format. For now we use wasm-parser that is excellent and pure JS. In the future for performance and more upstream compatibility, we might migrate to use wasm build of wasm-tools and expose bindings around it.

pi0 avatar Jan 22 '24 17:01 pi0