Skip to content

Tracking issue for advanced-env #7406

Open
@ehuss

Description

@ehuss
Contributor

Implementation: #5552
Issues: Z-advanced-env Nightly: 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.

cc #5416, #7253, #2362

Activity

gilescope

gilescope commented on Oct 14, 2020

@gilescope
Contributor

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?)

added
S-needs-designStatus: Needs someone to work further on the design for the feature or fix. NOT YET accepted.
S-waiting-on-feedbackStatus: An implemented feature is waiting on community feedback for bugs or design concerns.
on Apr 25, 2023
moved this to Unstable, no backers in Cargo Roadmapon Sep 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-tracking-issueCategory: A tracking issue for something unstable.S-needs-designStatus: Needs someone to work further on the design for the feature or fix. NOT YET accepted.S-waiting-on-feedbackStatus: An implemented feature is waiting on community feedback for bugs or design concerns.Z-advanced-envNightly: advanced-env

    Type

    No type

    Projects

    Status

    Unstable, no backers

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @ehuss@gilescope

        Issue actions

          Tracking issue for advanced-env · Issue #7406 · rust-lang/cargo