env2config
env2config is a Rust crate that allows you to load environment variables into structs. This is useful for configuration purposes, where settings can be provided through environment variables.
Features
- Load environment variables into structs
- Support for default values
- Support for various data types including
String,bool,i8,i16,i32,i64,i128,u8,u16,u32,u64,u128, andVec<T>
Usage
Add env2config to your Cargo.toml:
[]
= "1.0.1"
use FromEnv;
License
This project is licensed under the MIT License - see the LICENSE file for details.