envcast
Overview
envcast is a runtime crate that provides utilities to:
- read environment variables,
- load values from
.envfiles, - parse string values into typed Rust fields.
It is designed to work with the FromEnv derive macro from envcast_derive.
Features
- Environment variable lookup
.envfile support- Custom
.envpath viaDOTENV_CONFIG_FILE - Deterministic value resolution order
- Field-level default values
- Zero runtime reflection
- Works with
OnceLock,lazy_static, andonce_cell - MSRV: Rust 1.70.0
License
MIT