-
-
Notifications
You must be signed in to change notification settings - Fork 14.8k
Tracking Issue for restructuring std::sys #117276
Copy link
Copy link
Open
Labels
C-tracking-issueCategory: An issue tracking the progress of sth. like the implementation of an RFCCategory: An issue tracking the progress of sth. like the implementation of an RFCE-help-wantedCall for participation: Help is requested to fix this issue.Call for participation: Help is requested to fix this issue.T-libsRelevant to the library team, which will review and decide on the PR/issue.Relevant to the library team, which will review and decide on the PR/issue.
Metadata
Metadata
Assignees
Labels
C-tracking-issueCategory: An issue tracking the progress of sth. like the implementation of an RFCCategory: An issue tracking the progress of sth. like the implementation of an RFCE-help-wantedCall for participation: Help is requested to fix this issue.Call for participation: Help is requested to fix this issue.T-libsRelevant to the library team, which will review and decide on the PR/issue.Relevant to the library team, which will review and decide on the PR/issue.
Type
Fields
Give feedbackNo fields configured for issues without a type.
On Wednesday, the libs-team discussed reorganizing the platform-specific modules inside
std, namelysysandsys_commoninto a new structure. These modules will be merged into onesysmodule with a feature-first organization:sys, named after the feature they implement, contain all the implementations of the different platforms and provide a uniform interface that the rest ofstdmay depend on. E.g.sys::thread_local,sys::fsorsys::thread_parking.sys::palcontains platform-specific generic API wrappers likeFileDesccvt(UNIX) used to implement these features. E.g.sys::pal::unix,sys::pal::windowsor (perhaps)sys::pal::apple.The rest of
std, modulostd::os, should now only depend onsys::feature_nameand notsys::pal. The implementations themselves may however depend on other parts ofstdas necessary.sys::pal#117285sys#119996sys#120109sys#120776sys#121177sys#121758Onceimplementations tosys#122386sys_common::thread#123807sys::sync#124159sys_common::backtracetosys#126546sys#128134iomodule out ofpal, get rid ofsys_common::io#135696sys#136449fsintosys#137650sys#136780sys#136929sys_common::process#140393fdintostd::sys#139092argsintostd::sys#139710pal::envtostd::sys::env_consts#139868sys::pal::os::Envintosys::env#140143threadintosys#145177pipeintosys#146801)kernel_copytosys#147077sysrefactor #149930sys::pal::commonandsys_commonintosys::helpers#150047sys#151161exitout of PAL #152657getpidtosys::process#153130sys::palintosys@rustbot label +T-libs +E-help-wanted
@rustbot claim