EnvConf
Simple and small crate for configuration structs.
Crate generates impl with:
newpublic method that fetches values from environment#field_namepublic getters for values
Why this instead of X-config?
My crate panics if it can't found variable in environment and default is not specified and idk... it contains only 76 LOC.
Anyway, there is no big reason why to use my crate instead of cool and big X-config.
Install
- Using cli
cargo add envconfgen - Manually adding to Cargo.toml
# Cargo.toml
[dependencies]
envconfgen = "1.0.2"
Example
License - MIT
Contribution
Feel free to open issue or send PR.