rust-windowing / rust-windowing/winit

Neutralize platform-specific extension trait names

Open
#3,316 0 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

S - api
Dominant language
Rust
Stars
6.2k
Forks
1.3k
Avg merge
2d 19h
Merged PRs (30d)
9

Description

I noticed that a lot of our platform-specific extension trait have the name of the platform in their name.
This doesn't make sense because they are behind a cfg guard, it's not like they can collide.

Std also doesn't use platform names in their traits: see e.g. std::os::windows::process.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by locating the platform-specific extension traits referenced by this issue and review their current names and usages. Rename the traits to remove platform names while preserving the cfg-guarded APIs, then run the relevant project checks to confirm all references compile.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
desktop
Issue type
Refactor
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.