fix: use not importing and generating#17
Conversation
There was a problem hiding this comment.
Pull Request Overview
This PR fixes the code generator to properly handle WIT use statements by expanding support for cross-interface and cross-namespace type imports, rather than only generating using declarations for same-namespace imports.
- Removes restrictions that prevented cross-interface use statements from generating using declarations
- Adds support for type renaming in use statements via
type_renamesmapping - Implements proper namespace qualification for cross-namespace references (host vs guest)
Ubuntu Test Resultswit-stub-generation-test ResultsThis test is expected to have failures due to known issues with tuple wrapper types. Compilation Summary
Error Breakdown
Sample ErrorsKnown IssuesThe main issue is that Goal: These failures should ideally decrease over time or remain stable. Any increase warrants investigation. Updated: 2025-10-14T04:53:30.864Z |
Signed-off-by Gordon Smith <GordonJSmith@gmail.com>
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #17 +/- ##
=======================================
Coverage 78.13% 78.13%
=======================================
Files 21 21
Lines 1537 1537
Branches 131 131
=======================================
Hits 1201 1201
Misses 236 236
Partials 100 100 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
No description provided.