- [breaking] Nested config fields now needs to be marked with #[envconfig(nested)]
- Environment variable can be automatically derived from a field name (e.g.
db_host
will be tried to loaded fromDB_HOST
env var) - Add install step in README
- Update
syn
dependency to 2.x.x
- Add
init_from_hashmap
to initialize config fromHashMap<String, String>
in unit tests
- Get rid of thiserror dependency
- Use rust edition 2018
- Make envconfig re-export Envconfig macro from envconfig_derive (no need to use envconfig_derive explicitly anymore)
- Deprecate
init()
function in favor ofinit_from_env()
- Update
syn
,quote
andproc-macro2
dependencies to be1.x.x
- Use
thiserror
for errors
- Support nested structures
- Fix
Result
overlapping bug
- Support
default
attribute to specify default values
- Support of
Option<T>
types - Rewrite
envconfig_derive
to use the latests versions ofsyn
andquote
crates - Improve error messages on panics
- Add
skeptic
to generate tests based on README code examples
- [breaking] Use
envconfig
attribute instead offrom
in the derive macro - [breaking] Remove init_or_die() function from Envconfig trait
- [breaking] In envconfig_derive: rename function envconfig() -> derive()
- [improvement] Add better documentation to the crate
- [breaking] Use derive macro instead of macro_rules
- First public release