Commit 81572e4
committed
fix: preserve interface-specific export macros in wrapper generation
The wrapper generation was incorrectly removing ALL export macros with a
sed filter, including the interface-specific ones needed for multi-interface
components. This caused build failures when wit-bindgen generates separate
export macros for each interface in multi-interface worlds.
Changes:
- Remove sed filter that stripped all `pub use __export_.*_cabi` statements
- Preserve interface-specific export macros like __export_*_interface_*_cabi
- Allow main export macro to correctly reference interface-specific macros
- Enable multi-interface component builds with fixed wit-bindgen
This resolves build errors like:
error[E0433]: failed to resolve: could not find `__export_*_interface_*_cabi`
The fix works with both single-interface and multi-interface components,
maintaining backward compatibility while enabling the export macro visibility
fix from wit-bindgen.1 parent 41a5a2e commit 81572e4
1 file changed
+2
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
60 | 60 | | |
61 | 61 | | |
62 | 62 | | |
63 | | - | |
| 63 | + | |
64 | 64 | | |
65 | | - | |
| 65 | + | |
66 | 66 | | |
67 | 67 | | |
68 | 68 | | |
| |||
0 commit comments