-
Notifications
You must be signed in to change notification settings - Fork 2.9k
Specify config file on the command line #6648
Copy link
Copy link
Closed
Labels
A-cliArea: Command-line interface, option parsing, etc.Area: Command-line interface, option parsing, etc.A-configurationArea: cargo config files and env varsArea: cargo config files and env varsC-feature-requestCategory: proposal for a feature. Before PR, ping rust-lang/cargo if this is not `Feature accepted`Category: proposal for a feature. Before PR, ping rust-lang/cargo if this is not `Feature accepted`
Metadata
Metadata
Assignees
Labels
A-cliArea: Command-line interface, option parsing, etc.Area: Command-line interface, option parsing, etc.A-configurationArea: cargo config files and env varsArea: cargo config files and env varsC-feature-requestCategory: proposal for a feature. Before PR, ping rust-lang/cargo if this is not `Feature accepted`Category: proposal for a feature. Before PR, ping rust-lang/cargo if this is not `Feature accepted`
Type
Fields
Give feedbackNo fields configured for issues without a type.
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.