Skip to content

Tracking Issue for restructuring std::sys #117276

Open

Description

@joboet

On Wednesday, the libs-team discussed reorganizing the platform-specific modules inside std, namely sys and sys_common into a new structure. These modules will be merged into one sys module with a feature-first organization:

  • the submodules of sys, named after the feature they implement, contain all the implementations of the different platforms and provide a uniform interface that the rest of std may depend on. E.g. sys::thread_local, sys::fs or sys::thread_parking.
  • sys::pal contains platform-specific generic API wrappers like FileDesc cvt (UNIX) used to implement these features. E.g. sys::pal::unix, sys::pal::windows or (perhaps) sys::pal::apple.

The rest of std, modulo std::os, should now only depend on sys::feature_name and not sys::pal. The implementations themselves may however depend on other parts of std as necessary.

@rustbot label +T-libs +E-help-wanted
@rustbot claim

Activity

  1. added
    C-tracking-issueCategory: An issue tracking the progress of sth. like the implementation of an RFC
    on Oct 27, 2023
  2. added
    T-libsRelevant to the library team, which will review and decide on the PR/issue.
    on Oct 27, 2023
  3. added 2 commits that reference this issue on Jan 12, 2024
  4. added a commit that references this issue on Jan 13, 2024
  5. added a commit that references this issue on Jan 14, 2024
  6. added
    E-help-wantedCall for participation: Help is requested to fix this issue.
    on Jan 18, 2024
  7. added a commit that references this issue on Jan 21, 2024
  8. added a commit that references this issue on Jan 21, 2024
  9. ChrisDenton commented on Jan 22, 2024

    @ChrisDenton
    Member

    Something that just occurred to me is that we might want to add commits to https://github.com/rust-lang/rust/blob/master/.git-blame-ignore-revs if they're purely moving files. This allows GitHub's blame interface to ignore them.

  10. added 2 commits that reference this issue on Jan 22, 2024
  11. added a commit that references this issue on Jan 23, 2024
  12. added a commit that references this issue on Feb 9, 2024
  13. 164 remaining items

  14. added 2 commits that reference this issue on Mar 22, 2026
  15. added 3 commits that reference this issue on Jun 13, 2026
  16. added a commit that references this issue on Jun 14, 2026
  17. added a commit that references this issue on Aug 5, 2026
  18. added 3 commits that reference this issue on Aug 5, 2026
  19. added a commit that references this issue on Aug 5, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

C-tracking-issueCategory: An issue tracking the progress of sth. like the implementation of an RFCE-help-wantedCall for participation: Help is requested to fix this issue.T-libsRelevant to the library team, which will review and decide on the PR/issue.

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions