I have, not exactly with std.mem.print but something similar. I can make what I want to do work with the tools available, it would just be significantly easier and more performant with being...
As you say, I guess the real thing I would want out of this is the duped imports. My example was created by directly writing the wat file myself and converting it to wasm, so I have no idea how to...
I think a good direction to go overall would be to start replacing ffmpeg as the de-facto media library, if only because its a bloated mess of a project.
Sorry but I really don't have much time to give to this, I only created this repo for my own usecases so you may want to try to fix these issues yourself.