Open
Description
Implementation: #5552
Issues:
Z-advanced-env
This feature allows Cargo to read more complex configuration values from environment variables. Some examples:
- Lists can be specified using TOML syntax.
- Maps can be specified in the key (like CARGO_PROFILE_DEV_OVERRIDES_bar_OPT_LEVEL).
This is intentionally undocumented since it is very experimental and is unlikely to be stabilized in the current form. A lot more thought needs to go into how more advanced env vars should work.
Metadata
Metadata
Assignees
Labels
Type
Projects
Status
Milestone
Relationships
Development
No branches or pull requests
Activity
gilescope commentedon Oct 14, 2020
I can't help wondering if this is the tail wagging the dog. I suspect what most people want is env vars to be usable from within .cargo/config files - if that were possible I suspect the demand for trying to stuff config files into env vars would reduce quite a bit. (I'd be happy to try and make that reality if people were ok with that?)
-Zmultitarget
in cargo config #10473config.toml
#10789.cargo/config.toml
specify environment variables #12477CARGO_BUILD_TARGET
accept multiple target triples #14820