squrky opened issue #11061:
Hi,
It doesn't seem to be possible to implement a
proc_exithost function in C that produces an exit code trap. Specifically, I believe we're missing a function that can produce a trap instance that (when transformed into an error) will satisfy the requirements ofwasmtime_error_exit_status.Please let me know if you need further clarification from me.
Best.
alexcrichton added the wasmtime:c-api label to Issue #11061.
alexcrichton commented on issue #11061:
Yeah I think this will involve a new API to create a
wasmtime_error_tfrom a trap code which creates a WASI exit trap. Should be reasonable to add!
squrky commented on issue #11061:
Great! I'd offer to have a go at this myself but I think I'd have to learn Rust first!
Last updated: Dec 06 2025 at 07:03 UTC