Skip to content

Enable build-std on a per target basis #8733

Description

@MarnixKuijs

Some of my custom targets require me to enable build-std, which currently I can enable through .cargo/config.toml

[unstable]
build-std = ["core"]

but this means it is enabled for every target. However I don't necessarily want it for build in targets, it would be nice if in my .cargo/config.toml I could specify something like

[target.custom-target.unstable]
build-std = ["core"] 

If this is already possible but with a different syntax consider this issue closed

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-feature-requestCategory: proposal for a feature. Before PR, ping rust-lang/cargo if this is not `Feature accepted`S-triageStatus: This issue is waiting on initial triage.Z-build-stdNightly: build-std

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions