summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRyan Leckey <leckey.ryan@gmail.com>2017-02-12 18:45:38 -0800
committerGitHub <noreply@github.com>2017-02-12 18:45:38 -0800
commit1c40623c9f5abdbd8e5b11e30cfb903371d2b3b3 (patch)
tree13d6ec5fad9f1b1084c0dd94ed39a7d6993185df
parentb7edac6c2ef2f40f270019ecbd33d088ba2d26ea (diff)
Update CHANGELOG.md
-rw-r--r--CHANGELOG.md13
1 files changed, 12 insertions, 1 deletions
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<Config> = Default::default();
+ }
+ ```
## 0.3.0 - 2017-02-08
- YAML from [@tmccombs](https://github.com/tmccombs)