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


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 is an exhaustive one?

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


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

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)