Skip to content
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

Remove the trappable_error_type #370

Merged
merged 1 commit into from
May 21, 2024
Merged

Conversation

elliottt
Copy link
Contributor

The trappable_error_type argument to wasmtime::bindgen! became optional in wasmtime-21, and given that we never expect to trap in any of our host implementations, let's remove that additional complexity.

The meat of this change is removing the custom FastlyError type, and replacing it with types::Error which is generated from compute.wit. This simplifies some functions like the v2 suffixed request functions, but in most cases ended up being a renaming from FastlyError to types::Error.

@elliottt elliottt force-pushed the trevor/no-trap-component-errors branch from 48312d2 to 61ef8ab Compare May 20, 2024 23:39
Copy link
Contributor

@acw acw left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just a couple questions!

lib/src/component/http_req.rs Show resolved Hide resolved
lib/wit/deps/fastly/compute.wit Show resolved Hide resolved
lib/src/component/http_req.rs Show resolved Hide resolved
Copy link
Contributor

@acw acw left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Works for me!

@elliottt elliottt merged commit 2bf43ea into main May 21, 2024
7 checks passed
@elliottt elliottt deleted the trevor/no-trap-component-errors branch May 21, 2024 00:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants