Skip to content

Tracking Issue for restructuring std::sys #117276

Open
@joboet

Description

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.

Tasks

Preview Give feedback
  1. A-meta A-testsuite S-waiting-on-bors T-bootstrap T-compiler T-libs merged-by-bors
    ChrisDenton
  2. A-testsuite S-waiting-on-bors T-bootstrap T-libs
    ChrisDenton
  3. O-SGX O-hermit O-solid O-unix O-wasi O-wasm O-windows S-waiting-on-bors T-libs
    ChrisDenton
  4. O-SGX O-hermit O-solid O-unix O-wasi O-wasm O-windows S-waiting-on-bors T-libs
    ChrisDenton
  5. O-SGX O-hermit O-solid O-unix O-wasi O-wasm O-windows S-waiting-on-bors T-libs
    ChrisDenton
  6. A-meta O-SGX O-hermit O-solid O-unix O-wasi O-wasm O-windows S-waiting-on-bors T-libs merged-by-bors
    ChrisDenton
  7. S-waiting-on-bors T-libs
    ChrisDenton
  8. A-meta O-wasi O-wasm S-waiting-on-bors T-libs
    jhpratt
  9. S-waiting-on-bors T-libs
    jhpratt
  10. O-SGX O-unix O-wasi O-wasm O-windows S-waiting-on-bors T-libs
    ChrisDenton
  11. A-thread-locals O-SGX O-hermit O-itron O-solid O-unix O-wasi O-wasm O-windows S-waiting-on-bors T-libs merged-by-bors
    Mark-Simulacrum
  12. S-waiting-on-bors T-libs
    workingjubilee
  13. O-SGX O-hermit O-solid O-unix O-wasi O-wasm O-windows S-waiting-on-bors T-libs merged-by-bors
    cuviper

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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