From 1c40623c9f5abdbd8e5b11e30cfb903371d2b3b3 Mon Sep 17 00:00:00 2001 From: Ryan Leckey Date: Sun, 12 Feb 2017 18:45:38 -0800 Subject: Update CHANGELOG.md --- CHANGELOG.md | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) (limited to 'CHANGELOG.md') diff --git a/CHANGELOG.md b/CHANGELOG.md index 17d55d6..9628e68 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,7 +5,18 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/) and this project adheres to [Semantic Versioning](http://semver.org/). ## 0.4.0 - 2017-02-12 - - Remove global ( `config::get` ) API — It's now required to create a local configuration instance with `config::Config::new()` first + - Remove global ( `config::get` ) API — It's now required to create a local configuration instance with `config::Config::new()` first. + + If you'd like to have a global configuration instance, use `lazy_static!` as follows: + + ```rust + use std::sync::RwLock; + use config::Config; + + lazy_static! { + static ref CONFIG: RwLock = Default::default(); + } + ``` ## 0.3.0 - 2017-02-08 - YAML from [@tmccombs](https://github.com/tmccombs) -- cgit v1.2.3