Skip to content

Consider building the standard library with Cargo #19240

Closed
@emberian

Description

@emberian

This is distinct from #16091. Once we've hit 1.0.0, there's no better way to dogfood that stability than have the standard library a normal part of the Cargo ecosystem. The main benefit is that cross-compiling suddenly becomes a lot easier, especially for bare-metal targets: just use the normal --target with cargo. It also means that the answer to "do I need to add a line to my Cargo.toml" becomes a lot easier.

Cargo would inject references to std etc automatically, with an opt-out flag at the package level for things such as zinc or operating system kernels.

Building rustc would become slightly more interesting, but would probably just involve juggling with the PATH so that Cargo is pointed at the right place.

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