Skip to content

Refactor the standard library into a crate of crates #11828

Closed
@brson

Description

@brson

It is very desirable for std to be maximally portable to a variety of enviroments, and I am slightly worried that if we don't focus on making it well-factored now, before 1.0, that portability will be hampered later.

Sub-dividing std into crates to isolate platform-dependent parts will establish clear dependencies within the library. We can preserve std's interface by reexporting.

I can imagine at least the following subdivision:

  • libc
  • win - the parts of std::libc that are actually the windows api
  • prim - the primitive types
  • path
  • os
  • comm
  • task
  • rt
  • std

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions