Skip to content

Build the standard library with custom profile settings #2

Open
@ehuss

Description

@ehuss

This is a "use case" issue to try to clarify and discuss a use case, and how it will be addressed.

Currently the standard library is only available with the profile settings chosen when Rust is distributed. Currently that is the "release" profile with opt-level set to 2, and codegen-units set to 1.

It may be desirable for some to use different settings.

"std-aware Cargo" should make this quite simple to accomplish. When Cargo builds the standard library, it will use whatever profile is in effect at the time.

If the user wants to use different settings specifically for the standard library, they will likely need to individually select the crates (like core or std) with profile overrides.

Metadata

Metadata

Assignees

No one assigned

    Labels

    use caseDiscussion on a high-level use case

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions