You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When building for web, ResourceTable becomes annoying to use because the error type is not compatible with anyhow:
the trait `StdError` is not implemented for`ResourceTableError`, which is required by `Result<(), anyhow::Error>: FromResidual<Result<Infallible, ResourceTableError>>
So for example when implementing host functions, you must map_err every table error:
When building for native, that line would simply be:
self.table.delete(value)?;
I would be happy to make a PR if you want as this shouldn't be difficult, just wasn't sure how you would want to go about it (for example using the thiserror crate).
The text was updated successfully, but these errors were encountered:
When building for web,
ResourceTable
becomes annoying to use because the error type is not compatible with anyhow:So for example when implementing host functions, you must
map_err
every table error:When building for native, that line would simply be:
I would be happy to make a PR if you want as this shouldn't be difficult, just wasn't sure how you would want to go about it (for example using the
thiserror
crate).The text was updated successfully, but these errors were encountered: