dotenvy icon indicating copy to clipboard operation
dotenvy copied to clipboard

Compile-time macro should be configurable with path

Open allan2 opened this issue 1 year ago • 2 comments

With the deprecation of from_filename and finding in this crate, this functionality is needed for the dotenv! macro to be updated.

It should follow the design of the runtime attribute macro, #[load(path = "./.env", required = true, override_ = false).

allan2 avatar Sep 09 '24 15:09 allan2

Is something along the lines of:

dotenvy_macro::load!("./.env", true, false)

What you're looking for? If not, could you please provide an example.

mantmorre avatar Sep 11 '24 21:09 mantmorre

It should follow the attribute macro.

Like:

load!(path = "./.env", required = true, override_ = false)

allan2 avatar Sep 12 '24 14:09 allan2