-
Notifications
You must be signed in to change notification settings - Fork 4
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
Bump wasmtime to 3.0.0 #1
Conversation
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.
Thanks for doing this!
tests/runtime/invalid/host.rs
Outdated
match result { | ||
Ok(()) => anyhow::bail!("export didn't trap"), | ||
Err(e) if e.to_string().contains(err) => Ok(()), | ||
Err(e) if format!("{}", e.root_cause()).contains(err) => Ok(()), |
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.
Just to be a bit more concise:
Err(e) if format!("{}", e.root_cause()).contains(err) => Ok(()), | |
Err(e) if e.root_cause().to_string().contains(err) => Ok(()), |
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.
Fixed, thanks!
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.
Thanks! Could you add a description of the error handling changes to the commit message? When maintaining a fork of an upstream project it is especially important to carefully track updates like that.
Fixes compatibility with redesigned error handling (Result<T, wasmtime::Trap> -> anyhow::Result<T>). Refs: bytecodealliance/wasmtime#5149 Signed-off-by: Konstantin Shabanov <[email protected]>
done! Thanks! |
Nice commit message, thanks! |
Few fixes for compatibility with bytecodealliance/wasmtime#5149
Signed-off-by: Konstantin Shabanov [email protected]