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'm trying to export wasi:httpincoming-handler and import wasi:httpoutgoing-handler in the same component.
But the export and the import are each in different C object files and I'm passing two .wit files via -Wl,--component-type.
I separately use
world wasi-http {
import outgoing-handler;
}
And
world wasi-http {
export incoming-handler;
}
For each of them I use wit-bindgen c-sharp -w wasi-http -r native-aot --internal wasi-http-0.2.0/wit
And get 2 different .wit files, both named WasiHttpWorld_component_type.wit but in different folders.
Thanks! I believe the underlying issue here is bytecodealliance/wasm-tools#1897 which I hope to get to at some point in the future. For now though the only workaround is to permute the order of things and hope it gets fixed, but that's not great naturally :(
I'm trying to export
wasi:http
incoming-handler
and importwasi:http
outgoing-handler
in the same component.But the export and the import are each in different C object files and I'm passing two
.wit
files via-Wl,--component-type
.I separately use
And
For each of them I use
wit-bindgen c-sharp -w wasi-http -r native-aot --internal wasi-http-0.2.0/wit
And get 2 different .wit files, both named
WasiHttpWorld_component_type.wit
but in different folders.Difference between them is
vs
The rest of the file is identical (each containing the same used types).
Simplified link command is like
The interesting part of verbose log is
The text was updated successfully, but these errors were encountered: