Specify config file on the command line #6648
Labels
A-cli
Area: Command-line interface, option parsing, etc.
A-configuration
Area: cargo config files and env vars
C-feature-request
Category: proposal for a feature. Before PR, ping rust-lang/cargo if this is not `Feature accepted`
Several times I've wanted to have a config file (not a full manifest) in my repo that is not on the config search path, but that I can invoke on demand to change cargo's behavior.
One example of this is tikv/tikv#4189, where I am trying to add a "custom profile" by using config profiles. I only want to use this profile in certain situations, and would rather not enable it by copying the config file into cargo's search path, but by directly telling cargo to use that config.
Describe the solution you'd like
cargo build --config etc/release.config
, likecargo build --manifest-path
.The text was updated successfully, but these errors were encountered: