-
Notifications
You must be signed in to change notification settings - Fork 12.7k
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
Tracking issue for --env-set
flag
#118372
Labels
C-tracking-issue
Category: A tracking issue for an RFC or an unstable feature.
Comments
GuillaumeGomez
added
the
C-tracking-issue
Category: A tracking issue for an RFC or an unstable feature.
label
Nov 27, 2023
This was referenced Jan 13, 2024
We discussed about how it might impact rust-lang/rfcs#2794 and decided to rename it into |
This was referenced Jan 13, 2024
Dylan-DPC
changed the title
Tracking issue for
Tracking issue for Mar 8, 2024
--env
flag--env-set
flag
Hi! I see the stabilization PR was closed. What's the state of this then? My 2cents on a couple points:
If help is needed here I'd like to provide some! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Adds a new
--env-set
command line option on rustc. It allows to set environment variables value at compile-time to be used byenv!
andoption_env!
macros.When retrieving and environment variable value, the one specified by
--env-set
will take precedence. For example if you want havePATH=a
in your environment and pass--env-set PATH=env
, then you will have:Steps
--env
compiler flag (withouttracked_env
support) #118368, in Add support for--env
ontracked_env::var
#118830 and in Rename--env
option flag to--env-set
#119884--env-set
option #119926Unresolved questions
--env
variable is passed twice?The text was updated successfully, but these errors were encountered: