microsoft / microsoft/windows-rs

`windows-rdl` overload attribute should be supported directly

Open
#4,166 1 comment 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
Rust
Stars
12.8k
Forks
665
Avg merge
7h 9m
Merged PRs (30d)
70

Description

The WinRT metadata supports the `Overload` attribute that provides the non-overload name of an interface method. This has always been logically backward. While we cannot change the metadata, we can have RDL use the actual method names and use a special `#[overload(NAME)]` attribute that provides the name of the overload.

Contributor guide

Open the contributing guide

Research direction

Start by locating the windows-rdl metadata handling for the WinRT Overload attribute and the logic that assigns interface method names. Confirm how RDL represents attributes, then make it support actual method names plus #[overload(NAME)]; done means the special attribute supplies the overload name without changing the metadata.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
tooling
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.