Allow [target.'cfg(...)']
syntax in .cargo/config
#3499
Labels
A-configuration
Area: cargo config files and env vars
[target.'cfg(...)']
syntax in .cargo/config
#3499
In
Cargo.toml
there are two ways to specify target-specific dependencies:[target.$triple.dependencies]
[target.'cfg(...)'.dependencies]
(added by Implement cfg-based target-specific dependencies #2328)But in
.cargo/config
there is only one way to specify target-specific rustc flags:[target.$triple] rustflags = [...]
(added by per target rustflags #3153)It would be useful if
[target.'cfg(...)']
was supported here too, for use cases like:The text was updated successfully, but these errors were encountered: