Commit ae804f1
Peter Huene
wit-component: clean up type exports.
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.1 parent d31c4e3 commit ae804f1
File tree
6 files changed
+151
-138
lines changed- crates/wit-component
- src
- tests
- components
- imports
- lower-options
6 files changed
+151
-138
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
| 6 | + | |
| 7 | + | |
7 | 8 | | |
8 | 9 | | |
9 | 10 | | |
| |||
146 | 147 | | |
147 | 148 | | |
148 | 149 | | |
149 | | - | |
150 | | - | |
151 | | - | |
| 150 | + | |
152 | 151 | | |
153 | 152 | | |
154 | 153 | | |
| |||
0 commit comments