Upgrading config 0.4 to 0.5
Breaking0.4.1 → 0.5.1Breaking2New2Changed1Fixed2Other1
BreakingUpgrade verdict
2 breaking changes.
In plain terms
- Loading a file no longer walks through directories to find it. This may come back later as an opt-in feature.
- Reading a setting now returns the type you ask for, such as a number or text, instead of a generic value. Ask for a generic value if you want the old result.
Must act 2 items need code or config changes
Adds float-cmp ^0.2.3, lazy_static ^0.2, serde ^1.0.8, serde_derive ^1.0.8.
Installs 22 packages in all (was 11).
What you must change
Breaking2
Removes directory traversal on
File, likely temporarily, since the behavior should be optional.Fileconfig.get now takes a type parameter and deserializes into that type via serde; pass config::Value to get the old value-variant behavior.config.getconfig::Value