deislabs / wasi-experimental-http

Experimental outbound HTTP support for WebAssembly and WASI
MIT License
136 stars 33 forks source link

Update guests to use raw bindings #54

Closed radu-matei closed 3 years ago

radu-matei commented 3 years ago

This PR updates both Rust and AssemblyScript implementations to use language bindings automatically generated by witx-codegen based on the WITX definitions from #52.

It updates the build script and GitHub Action to always regenerate the raw bindings, meaning that at least the guest implementations will always be in sync with the WITX definitions.

The runtime implementation should also be updated to use bindings generated potentially by wiggle.

Also note that the WITX definitions and generator used for this PR are still experimental, and breaking changes will most likely happen in the future.

jedisct1 commented 3 years ago

Wow, good job! 👍

jedisct1 commented 3 years ago

With recent versions of wasi-codegen, the Rust backend assumes WasiString values to be immutable, which may simplify things a little bit.