allow runner configuration to use feature flags #14314
Labels
C-feature-request
Category: proposal for a feature. Before PR, ping rust-lang/cargo if this is not `Feature accepted`
S-triage
Status: This issue is waiting on initial triage.
Problem
In the embedded space, I have several chips with the same target triple, but which require a different runner. My
Cargo.toml
contains features that are sufficient to know which runner to use. However, my.cargo/config.toml
cannot choose a runner based on those features. Error-prone manual editing is required.(Specifically, target is
thumbv7em-none-eabihf
, runner isprobe-rs run --chip=nrf52833-xxAA
orprobe-rs run --chip=nrf52840-xxAA
depending on board feature flags.)Proposed Solution
It would be great to be able to have the full Cargo
cfg()
available incargo.toml
. Specifically, it would be nice to be able to write something likeI'm not wedded to the particulars: anything that lets me pick the correct runner automagically would be fine.
Notes
No response
The text was updated successfully, but these errors were encountered: