Skip to content

Ignore when components export type definitions - #5051

Merged
alexcrichton merged 3 commits into
mainfrom
pch/stub_component_type_typedef_for_exports
Oct 12, 2022
Merged

alexcrichton merged 3 commits into
mainfrom
pch/stub_component_type_typedef_for_exports

Conversation

@pchickey

Copy link
Copy Markdown
Contributor

As of bytecodealliance/wit-bindgen#369, wit-component will export interface types in order to give them names.

We now accept type for mapping to a component TypeDef in wasmtime-environ.

Type exports do not have definitions which Wasmtime can match to a Definition, so we now skip inspecting them in the component/matching.rs file.

A test case has been added to component-model/instance.wast.

Pat Hickey added 3 commits October 12, 2022 14:33
…are "defined"

types may be exported by their name for consumption by some component
runtimes, but in wasmtime this doesn't matter (we lift and lower to
types, not define them) so we should ignore these.
… definition

this is meaningless, but it should be accepted. (previously rejected)
@pchickey
pchickey requested a review from alexcrichton October 12, 2022 22:04
@github-actions github-actions Bot added the wasmtime:api Related to the API of the `wasmtime` crate itself label Oct 12, 2022
@alexcrichton
alexcrichton enabled auto-merge (squash) October 12, 2022 22:25
@github-actions

Copy link
Copy Markdown
Contributor

Subscribe to Label Action

cc @peterhuene

Details This issue or pull request has been labeled: "wasmtime:api"

Thus the following users have been cc'd because of the following labels:

  • peterhuene: wasmtime:api

To subscribe or unsubscribe from this label, edit the .github/subscribe-to-label.json configuration file.

Learn more.

@alexcrichton
alexcrichton merged commit f96491f into main Oct 12, 2022
@alexcrichton
alexcrichton deleted the pch/stub_component_type_typedef_for_exports branch October 12, 2022 22:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

wasmtime:api Related to the API of the `wasmtime` crate itself

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants