Skip to content

Allow [target.'cfg(...)'] syntax in .cargo/config #3499

@mbrubeck

Description

In Cargo.toml there are two ways to specify target-specific dependencies:

But in .cargo/config there is only one way to specify target-specific rustc flags:

It would be useful if [target.'cfg(...)'] was supported here too, for use cases like:

[target.'cfg(target_arch = "x86")']
rustflags = ["-C", "target-feature=+ssse3"]

Metadata

Assignees

No one assigned

    Labels

    A-configurationArea: cargo config files and env vars

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions