Change compiler options based on the selected features

Viewed 90

Is it possible to set a certain compiler switch if a feature is enabled? For example I would like to add a feature instrument and compile everything with -Z instrument-mcount. I did take a look at the options available for .cargo/config.toml but could not find anything useful.

0 Answers
Related