# dotenvs
[](https://crates.io/crates/dotenvs)
[](https://docs.rs/dotenvs)
[](./LICENSE.md)
A correct dotenv library with variable substitution.
- Variable substitution: `$VAR`, `${VAR}`, `${VAR:-default}`
- Three quote styles (`' " ``), multi-line values
- Overwrite or preserve existing environment variables
- `export` prefix for shell compatibility
## Usage
> **Note**:
>
> The crate is named `dotenvs`, but its lib is `dotenv`.
```toml
[dependencies]
dotenvs = "0.2"
```
```rust
dotenv::load();
// iterate all variables
for (key, value) in dotenv::vars() {
println!("{}: {}", key, value);
}
```
## License
[MIT](LICENSE.md)