Skip to content

Adopt canonical Classic COM module layout - #133

Merged
leileizhang (lei9444) merged 3 commits into
mainfrom
feature/com-canonical-layout
Sep 4, 2026
Merged

leileizhang (lei9444) merged 3 commits into
mainfrom
feature/com-canonical-layout

Conversation

@lei9444

Copy link
Copy Markdown
Contributor

Summary

  • place safe and generated unsafe Classic COM modules under canonical lowercase/kebab namespace paths
  • rebase cross-namespace and relative runtime imports for nested modules while keeping unique short exports in COM barrels
  • isolate real short-name collisions to canonical deep imports
  • publish COM-only output only through ./com and ./com/*; the generated package root remains WinRT-only
  • use COM manifest v2 and unsafe support schema 11, failing closed on version mismatch so bindings are fully regenerated across versions

Validation

  • cargo test -p dynwinrt-codegen
  • cargo test -p dynwinrt -p jswinrt_rs
  • cargo check -p jswinrt_rs --target i686-pc-windows-msvc
  • npm run test:generated-unsafe
  • npm test (known WinUI timing test passed on isolated rerun)
  • Classic COM E2E: 17/17
  • capability summary and interface-support census remain byte-identical

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

Copilot-Session: 9ef7fa55-eb2a-4360-bd17-05feae50fadb
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

Copilot-Session: 9ef7fa55-eb2a-4360-bd17-05feae50fadb
@github-actions

github-actions Bot commented Sep 3, 2026 •

Copy link
Copy Markdown

Mixed-language test coverage

Workflow status: ✅ Passed

Layer Lines Functions Branches/regions
Rust, including native .pyd/.node 84.9% 79.88% 84.42% regions
Generated Python projections 70.5% n/a 21.71% branches
JavaScript aggregate 21.46% 20.64% 54.23% branches
JavaScript runtime 24.22% 14.28% 7.14% branches
Generated WinRT projections 25.8% 19.3% 54.74% branches
Generated Classic COM projections 14.83% 24.65% 54.38% branches

View workflow run and download full HTML/LCOV/XML reports

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

Copilot-Session: 9ef7fa55-eb2a-4360-bd17-05feae50fadb
@lei9444
leileizhang (lei9444) merged commit 575f280 into main Sep 4, 2026
24 checks passed
@lei9444
leileizhang (lei9444) deleted the feature/com-canonical-layout branch September 4, 2026 02:25
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.

3 participants