Skip to content

Allow scoping unstable features to specific targets #89

@ketsuban

Description

@ketsuban

Currently if I want to use build-std in my .cargo/config.toml file I have to put it in an [unstable] section which applies it for every target when I only want to build the standard library for one. Would it be possible to do something like this, so that the unstable flags are only added when building for the appropriate target?

[target.thumbv4t-none-eabi]
runner = "mGBA"
rustflags = ["-Clink-arg=-Tlinker.ld"]

[target.thumbv4t-none-eabi.unstable]
build-std = ["core", "alloc"]
build-std-features = ["compiler-builtins-weak-intrinsics"]

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