migueldeicaza / WasmerSharp

.NET Bindings for the Wasmer Runtime
MIT License
318 stars 24 forks source link

How can I compile my .NET code to a WASM file? #13

Open dellams opened 4 years ago

dellams commented 4 years ago

Hi, I LOVE your work, thank you very much! :)

My requirements are a bit more complex, I am building a .NET HDK for Holochain. The conductor that runs in Holochain expects a WASM file for their hApps. Currently they are using a Rust HDK but I wish to make a .NET HDK to speed up dev and to attract Unity and .NET devs to the HC ecosystem...

I can use your code to call into the HC core API calls (also compiled into WASM), but I then need to compile the .NET code back into WASM so the HC Conductor can use it...

The good news is that HC also use Wasmer to compile their Rust code into WASM so this should help I hope? :)

Is there a way? Thanks.

I am currently looking at Mono and CoreRT as possible solutions but I was hoping your code could do it? Would be a lot easier!

Many thanks, David.

giansalex commented 3 years ago

See this https://www.mono-project.com/news/2018/01/16/mono-static-webassembly-compilation/ image