-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fixes #2418: Enhance wiggle to generate its UserErrorConverstion trait with a function that returns Result<abi_err, String> #2419
Fixes #2418: Enhance wiggle to generate its UserErrorConverstion trait with a function that returns Result<abi_err, String> #2419
Conversation
Subscribe to Label Actioncc @kubkon
This issue or pull request has been labeled: "wasi"
Thus the following users have been cc'd because of the following labels:
To subscribe or unsubscribe from this label, edit the |
d0c55c7
to
228ebad
Compare
…tion that returns a Result<abi_err, String>. This enhancement allows hostcall implementations using wiggle to return an actionable error to the instance (the abi_err) or to terminate the instance using the String as fatal error information.
…tion that returns a Result<abi_err, String>. This enhancement allows hostcall implementations using wiggle to return an actionable error to the instance (the abi_err) or to terminate the instance using the String as fatal error information.
…. Hostcall implementations generated by wiggle now return an Result<abi_error, Trap>. As a result, hostcalls experiencing fatal errors may trap, thereby terminating the wasmtime instance. This enhancement has been performed for both wasi snapshot1 and wasi snapshot0.
80eaf71
to
e693086
Compare
e5eccb9
to
7487b89
Compare
} | ||
|
||
#[no_mangle] | ||
pub unsafe fn #c_abi_name( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For referenced, I recommended this get removed since it needed to get updated anyway and I don't think that anything is using this right now.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Did you have anything else you wanted to add in? (just in case the "WIP" title is still active)
@alexcrichton -- I believe this is ready to merge. I appreciate you! |
👍 |
- Refer to a rebased branch of wasmtime that (temporarily) removes bytecodealliance/wasmtime#2419; that PR changed some APIs in a way that is not yet reflected in Lucet. - Update a `GuestMemory` impl in a slightly hamfisted way (every shared/mut borrow is "just a borrow"; imprecise but maybe still sound?) Both of these things should be fixed before merging; I just want to get a green CI again for testing!
Long-time listener, first-time caller.
I am submitting this WIP PR for issue #2418. Please see issue #2418 for a description.