diff options
Diffstat (limited to 'src/lib.rs')
-rw-r--r-- | src/lib.rs | 8 |
1 files changed, 5 insertions, 3 deletions
@@ -6,7 +6,7 @@ //! - Environment variables //! - Another Config instance //! - Remote configuration: etcd, Consul -//! - Files: TOML, JSON, YAML, HJSON, INI, RON +//! - Files: TOML, JSON, YAML, HJSON, INI, RON, JSON5 //! - Manual, programmatic override (via a `.set` method on the Config instance) //! //! Additionally, Config supports: @@ -24,8 +24,7 @@ #[macro_use] extern crate serde; -#[cfg(test)] -#[macro_use] +#[cfg(any(test, feature = "json5"))] extern crate serde_derive; extern crate nom; @@ -51,6 +50,9 @@ extern crate ini; #[cfg(feature = "ron")] extern crate ron; +#[cfg(feature = "json5")] +extern crate json5_rs; + mod builder; mod config; mod de; |