-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Replace anyhow with wasmtime_internal_error
#12309
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
Replace anyhow with wasmtime_internal_error
#12309
Conversation
3caec67 to
6e5fd91
Compare
|
The |
|
I'd recommend |
Subscribe to Label Actioncc @fitzgen DetailsThis issue or pull request has been labeled: "wasmtime:api", "wizer"Thus the following users have been cc'd because of the following labels:
To subscribe or unsubscribe from this label, edit the |
6e5fd91 to
3f45f94
Compare
|
This PR depends on #12324 as well |
Subscribe to Label Actioncc @fitzgen DetailsThis issue or pull request has been labeled: "fuzzing"Thus the following users have been cc'd because of the following labels:
To subscribe or unsubscribe from this label, edit the |
ca06298 to
bcc70d0
Compare
|
All of this PR's blockers have merged, I've rebased on |
bcc70d0 to
b7eb67b
Compare
|
Found a bug in the wit-bindgen generated code with |
710bd25 to
70c1b4b
Compare
|
Depends on #12343 |
alexcrichton
left a comment
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.
Looks like all that's left is a top-o sort of the publish.rs list of crates, thanks again for pushing through all this and working on all the PRs!
This replaces `wasmtime-environ`'s dependency on `anyhow` -- and its re-export of that crate as `wasmtime_environ::error`, which the `wasmtime` crate re-exports as `wasmtime::error` in turn -- with our own `wasmtime_internal_error` crate. Our crate is API compatible with `anyhow`, but additionally allows for handling out-of-memory, memory-exhaustion, and allocation-failure errors. This will let us proceed with the efforts tracked in bytecodealliance#12069 prtest:full
70c1b4b to
24bdb9f
Compare
This replaces
wasmtime-environ's dependency onanyhow-- and its re-export of that crate aswasmtime_environ::error, which thewasmtimecrate re-exports aswasmtime::errorin turn -- with our ownwasmtime_internal_errorcrate. Our crate is API compatible withanyhow, but additionally allows for handling out-of-memory, memory-exhaustion, and allocation-failure errors.This will let us proceed with the efforts tracked in #12069
Builds on top of #12308