config-rs v0.4.0 Release Notes
Release Date: 2017-02-12 // about 7 years ago-
- Remove global (
config::get
) API — It's now required to create a local configuration instance withconfig::Config::new()
first.
If you'd like to have a global configuration instance, use
lazy_static!
as follows:use std::sync::RwLock; use config::Config; lazy_static! { static ref CONFIG: RwLock<Config> = Default::default(); }
- Remove global (