Any plans to allow "features" as a Cargo configuration key?


#1

I was hoping to be able to avoid always typing --features "use-x use-y" on the command line by adding something like features = [ "use-x", "use-y" ] to a .cargo/config file.

This didn’t have any effect, so I guess the list of configuration options described at http://doc.crates.io/config.html is an exhaustive one?

Obviously this is a relatively trivial issue, but are there plans to extend the configuration file format to include “features”?


#2

For almost-always-on features you can use the default feature:

[features]
default = ["foo", "bar"]

Otherwise though there aren’t currently any plans to encode different locations for the default set of features to enable (e.g. via .cargo/config)