# envcast
[](https://crates.io/crates/envcast)
[](https://github.com/rust-lang/rust/releases/tag/1.70.0)
[](https://github.com/neamaddin/envcast/actions/workflows/ci.yml)
[](https://docs.rs/envcast/)
## Overview
`envcast` is a runtime crate that provides utilities to:
- read environment variables,
- load values from `.env` files,
- parse string values into typed Rust fields.
It is designed to work with the `FromEnv` derive macro from `envcast_derive`.
## Features
- Environment variable lookup
- `.env` file support
- Custom `.env` path via `DOTENV_CONFIG_FILE`
- Deterministic value resolution order
- Field-level default values
- Zero runtime reflection
- Works with `OnceLock`, `lazy_static`, and `once_cell`
- MSRV: Rust 1.70.0
## License
MIT