You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
dotenv_codegen provides the dotenv! macro, which behaves identically to env!, but first tries to load a .env file at compile time.
However, I found v0.15 to only work with a .env file present and not getting any vars from the "real" environment, i.e. according to behaviour, the docs should state
dotenv_codegen provides the dotenv! macro, which behaves identically to env!, but instead tries to load a .env file at compile time.
Which one is correct, current docs or current implementation?
The text was updated successfully, but these errors were encountered:
This indeed is an unexpected behavior. I cannot get any other value of that provided in .env at compile time. Cannot change the .env and cannot as you state provide the value through std env.
Hi there,
The README in https://github.com/dotenv-rs/dotenv/blob/master/README.md#usage states that
However, I found v0.15 to only work with a .env file present and not getting any vars from the "real" environment, i.e. according to behaviour, the docs should state
dotenv_codegen
provides thedotenv!
macro, which behaves identically toenv!
, but instead tries to load a.env
file at compile time.Which one is correct, current docs or current implementation?
The text was updated successfully, but these errors were encountered: