dotenv-typed
Zero-Dependency .env Parser, Typed Environment Config Loader & Redacting SecretString
Overview
dotenv-typed parses .env files with interpolation and escape handling into a layered, prefix-scoped EnvConfig supporting typed scalars, durations, lists, and redacting SecretString values with zero external dependencies.
Installation
Usage
use EnvConfig;
let raw = "APP_HOST=127.0.0.1\nAPP_PORT=8080\nAPP_ENABLED=true\n";
let config = from_dotenv_str.unwrap.with_prefix;
assert_eq!;
assert!;
Verification
License
This project is licensed under the MIT License. See the LICENSE file for details.
Contact
For inquiries, please contact the author at root@devhub.vip.