Skip to content

Conversation

@peterhuene
Copy link
Member

@peterhuene peterhuene commented Jul 14, 2022

This PR refactors encoding in wit-component to only export types from the
default interface and stop exporting types from instance types used in imports.

It also makes "type only" encodings more explicit with InterfaceEncoder that
will encode the types from a single interface only.

@peterhuene peterhuene requested a review from alexcrichton July 14, 2022 20:50
This commit refactors encoding in `wit-component` to only export types from the
default interface and stop exporting types from instance types used in imports.

It also makes "type only" encodings more explicit with `InterfaceEncoder` that
will encode the types from a single interface only.
@peterhuene peterhuene force-pushed the suppress-type-exports branch from 887c413 to ae804f1 Compare July 15, 2022 18:42
@peterhuene peterhuene changed the title Remove type exports from wit-component output. wit-component: clean up type exports. Jul 15, 2022
@peterhuene
Copy link
Member Author

@alexcrichton I've changed this PR to continue to export types from wit-component, but it cleans things up a little bit so that we don't export types from the instance types used in imported interfaces.

@peterhuene peterhuene merged commit 60e3c5b into bytecodealliance:main Jul 15, 2022
@peterhuene peterhuene deleted the suppress-type-exports branch July 15, 2022 19:06
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