Open paulbatum opened 5 years ago
Yep, that is currently a limitation of gen_assembly. :-(
@paulbatum I think I solved it long ago with wabt (can take a look to https://github.com/NicolasDorier/NBitcoin.Secp256k1/blob/master/Dockerfile)
I have vague memory about what I did, but I think in my solution, there is a proper implementation of wasi functions provided by the sdk I use.
I need to try again with new wasn2cil version.
Either that, or I ended up removing trace of printf
in my code so those get never called. I think they were the source of the dependencies.
I might be missing something but I can't figure out how to load a module that has a set of imports that look like this:
The idea is that
myfunc
would be provided by a separate .NET assembly. I assume that gen_assembly would need to be modified to accept multiple assemblies for this to be possible?