Allan Zhang
Allan Zhang
Hi @cprussin, there is a new API. See the [optional example](https://github.com/allan2/dotenvy/blob/v0.16/examples/optional/src/main.rs). IO is deferred until `load` and behaviour is configured with `EnvSequence`. As `load` returns `Result`, it will catch IO...
This is a very important issue that will change the future of dotenvy. The next release of dotenvy will offer both a safe API (which does not modify the environment)...
There is a new API in the [v0.16](https://github.com/allan2/dotenvy/blob/v0.16/dotenvy/src/lib.rs) branch. ```rs let loader = EnvLoader::from_path(path).sequence(EnvSequence::FilesThenEnv); // does not modify environment let env_map: HashMap = loader.load()?; // modifies environment using `set_var` let...
@phillipleblanc good idea. This will be supported in the next release.
Hi @aidenfarley, I am working on a design locally. I haven't opened a PR yet, but it will come before the Rust 2024 edition. Stay tuned.
Hello, there is a new API on the [v0.16 branch](https://github.com/allan2/dotenvy/blob/v0.16/dotenvy/src/lib.rs). PRs are welcome to that branch. I would suggest `EnvLoader::substitution(true)`.
This has always been the default behaviour of dotenv/dotenvy. *v0.15 or earlier* ```rs fn main() { dotenvy::dotenv().unwrap(); } ``` ``` thread 'main' panicked at src/main.rs:2:23: called `Result::unwrap()` on an `Err`...
`EnvSequence` expresses more than just `required`. It is more like: ```rs loader.required(false).existing_env(true).override(false) ``` Having the configuration as a type is nice. It allows for this --> [dev/prod example](https://github.com/allan2/dotenvy/blob/master/examples/dev-prod/src/main.rs#L45-L52) The config...
I have removed the `scard` feature from IronRDP and kept the emulated support in `ironrdp-web`. There was an issue with flate2 building on WASM which is resolved by https://github.com/Devolutions/sspi-rs/pull/547. After...
Another failure was detected [here](https://github.com/allan2/dotenvy/actions/runs/11194120172/job/31120209698) for the `recursive_substitution` test. Substitutions are not being applied deterministically.