Open
Description
opened on Oct 27, 2023
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 ofstd
may depend on. E.g.sys::thread_local
,sys::fs
orsys::thread_parking
. sys::pal
contains platform-specific generic API wrappers likeFileDesc
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.
Activity