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

Wasm imports #433

Merged
merged 4 commits into from
Sep 8, 2023
Merged

Wasm imports #433

merged 4 commits into from
Sep 8, 2023

Conversation

jsoverson
Copy link
Contributor

This PR adds the ability for wasm components to import components directly vs. forcing components to be provided via the required/provides relationship.

Also in this PR:

  • removed panic when wasm gets packets for unknown ports.
  • made wasm->component calls via [op_name]_raw actually raw. They now only take and return a single stream of packets. The old implementation had excess generated code in it which cause the interface to be weird and not-at-all raw.
  • made wasm->component calls via [op_name] always "not raw" - as in they will ignore the global raw setting. This is in preparation for the removal of the raw settings.

@jsoverson jsoverson marked this pull request as draft September 7, 2023 21:09
@jsoverson
Copy link
Contributor Author

Converted to draft while I work on some components that leverage this feature to make sure it satisfies requirements.

BREAKING CHANGE: Box<StdError...> may need to be converted into anyhow::Error
@jsoverson jsoverson marked this pull request as ready for review September 8, 2023 20:28
@jsoverson jsoverson merged commit 534d209 into main Sep 8, 2023
@jsoverson jsoverson deleted the wasm-imports branch September 8, 2023 21:18
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