Utilizing WIT and wit-bindgen c to generate host function and register? #3802
Unanswered
KristoferHansson
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi, just started looking the state of WAMR support for the component model, WIT and wit-bindgen-c, how to utilize with WAMR to create host functions from WIT definitions. From how I understand wasi it's interfaces are defined using WIT and then for example wasi-libc implements those host functions, and then WAMR utilizes wasi-libc and registers those as host functions in the runtime in some way? wasm_runtime_register_natives?
Are there any guidelines / good code examples on how to do this for custom host functions defined using WIT and wit-bindgen c? Can I just utilize it to generate the NativeSymbol?(or is this a WAMR unique type what wit-bindgen c does not care about?) and the function signature stub and then register it via wasm_runtime_register_natives?
Discussions in issue: 3685 and 3103 mention component model and WIT but gives me the impression that it's not prioritized to support right now?
Beta Was this translation helpful? Give feedback.
All reactions