Repository navigation
Fix explicit WinRT delegate selection for JavaScript and Python - #207
Merged
Merged
Conversation
Classify validated non-generic WinRT delegates before runtime-class fallback and reuse the shared dependency interface parser for JavaScript and Python. Include namespace roots, selection-order/incremental regressions, strict callable consumers, and bounded real ThreadPool callback fixtures. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Accept optional trailing commas and format the two existing macro calls required by hosted Rust 1.99. Generated native signatures and behavior are unchanged. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Mixed-language test coverageWorkflow status: ✅ Passed
|
Retain the SDK Facade override while supplementing its same-version native contracts and sharing expanded paths between direct metadata checks and generation. Add native/Facade/raw-CLI parity controls without weakening declaring-kind, IID, Invoke, or unsupported-root assertions. Use tracked dynwinrt.pyi for static strict consumers, retain unrelated stub roots, and check installed wheel stubs independently. A tracked-only incomplete source fixture reproduces the old shadowing failure, while source and installed lanes enforce zero positive errors and one negative argument-type diagnostic in both Python output modes. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Retain every metadata override, preserve a versioned Facade's matching native contract when available, and use the CLI's Windows-namespace probe and versioned SDK discovery for unversioned Facades before shared sibling expansion. Exercise the exact hosted unversioned path as well as native and versioned Facade controls with all declaring-kind, IID, Invoke and generated-output parity assertions enforced. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
shisan (qiutongMS)
approved these changes
Oct 8, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
Explicitly selecting
ThreadPool,WorkItemHandlertreats the delegate as a runtime class and replaces its working dependency module with a placeholder. JavaScript then fails withFailed to recover WinGUID; Python rejects a normal callback as a non-DynWinRTValueinput. Selecting onlyThreadPoolworks.Fix
Recognize public, non-generic WinRT delegates from their metadata before the runtime-class fallback, then reuse the existing delegate parsing and dependency pipeline for JavaScript and Python. Explicit, dependency-only and namespace selection now produce consistent delegate contracts. Malformed, non-WinRT and open-generic roots fail explicitly; standalone-interface and Classic COM routing are unchanged.
Verification
No native runtime, ABI, lifetime or release behavior changes. A separate, formatting-only CI prerequisite updates existing test-hook macro syntax for current rustfmt.