-
Notifications
You must be signed in to change notification settings - Fork 2.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support multiple cargo configuration files in .cargo
#9306
Comments
Hi @jonhoo, does splitting your config into |
No, unfortunately not. It's not uncommon to have personal per-project configuration options (like sharing a |
I can take a look at implementing this. Using the method in system.conf.d for priority loading based on reverse lexicographical sort. So that |
perhaps something like an [files]
include = "conf.d/*.toml"
include = "required.toml"
include = "-local.toml"
include = "-local-%h.toml" When wildcards expand to null or when prefixed by The optional Perhaps some placeholders can be implemented too:
This allows to share the source on NFS and set environment specifics configurations (e.g. paths) |
There is already an unstable |
That's what I was thinking as well. With the cli taking priority for load order. |
Describe the problem you are trying to solve
I want to check in some subset of my cargo configuration into version control (e.g., aliases useful to all devs), but not others (e.g., parts that hold custom patches, rustflags, or other local build options).
Describe the solution you'd like
I would like to be able to split my configuration file into multiple files, and then only check in some of them.
Notes
Currently, my options are:
None of these are ideal. It'd be nice if cargo supported something like a
.cargo/config.toml.d/
directory that could then contain any number of configuration files that are merged.The text was updated successfully, but these errors were encountered: