You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've been reading over the witx-bindgen repo and decided to give it a try to see how to generate host imports. Still need to test it out with their macro that lets you import this, but I'm still pretty happy with the initial output. Rust encodes enums starting at 0, so this should work out of the box!
enum method {
Get,
Head,
Options,
Post,
Put,
Patch,
Delete,
}
type url = string
type body = list<u8>
fetch_url: function(method: method, url: url, body: body, ident: s32)
I've been reading over the witx-bindgen repo and decided to give it a try to see how to generate host imports. Still need to test it out with their macro that lets you import this, but I'm still pretty happy with the initial output. Rust encodes enums starting at 0, so this should work out of the box!
witx-bindgen rust-wasm -i input.witx --out-dir ./out
The text was updated successfully, but these errors were encountered: