
envious allows you to deserialize your serde enabled structs from
environment variables.
See it in action:
use ;
let config: Config = from_env.expect;
With the following environment variables:
it will parse it from the environment and give you a Rust struct you can use in your application.
Note: The environment variables are case sensitive! This is due to how
serdeworks internally. If you want your structs to use SCREAMING_SNAKE_CASE, then be sure to use the#[serde(rename_all = "SCREAMING_SNAKE_CASE"]annotation on all concerned structs.
License
envious is licensed under MIT or Apache 2.0, as you wish.
Contributing
To contribute to envious you can:
- Open up issues with ideas, remarks, bug reports, etc...
- Fork and implement new features and send them in as pull requests
- Leave it a Star and spread the word! ;)