summaryrefslogtreecommitdiffstats
path: root/src/lib.rs
diff options
context:
space:
mode:
authorRyan Leckey <leckey.ryan@gmail.com>2017-03-08 11:09:37 -0800
committerRyan Leckey <leckey.ryan@gmail.com>2017-03-08 11:09:37 -0800
commit2dc6a74b84825f65142c1fa7d3e67cd4f35ee3cb (patch)
tree23b21f732efbb215498db6debf6dbaee3af7e94f /src/lib.rs
parentc9ee1568fe212e4c352ec1afc52db44b34348fcd (diff)
Initial work on deep serde integration
Diffstat (limited to 'src/lib.rs')
-rw-r--r--src/lib.rs89
1 files changed, 0 insertions, 89 deletions
diff --git a/src/lib.rs b/src/lib.rs
deleted file mode 100644
index 15f9d49..0000000
--- a/src/lib.rs
+++ /dev/null
@@ -1,89 +0,0 @@
-//! Configuration is gathered by building a `Source` and then merging that source into the
-//! current state of the configuration.
-//!
-//! ```rust
-//! extern crate config;
-//!
-//! use std::env;
-//! use config::{Config, File, FileFormat, Environment};
-//!
-//! fn main() {
-//! // Create a new local configuration
-//! let mut c = Config::new();
-//!
-//! // Add 'Settings.toml'
-//! c.merge(File::new("Settings", FileFormat::Toml).required(false)).unwrap();
-//!
-//! // Add 'Settings.$(RUST_ENV).toml`
-//! let name = format!("Settings.{}", env::var("env").unwrap_or("development".into()));
-//! c.merge(File::new(&name, FileFormat::Toml).required(false)).unwrap();
-//!
-//! // Add environment variables that begin with APP_
-//! c.merge(Environment::new("APP")).unwrap();
-//! }
-//! ```
-//!
-//! Note that in the above example the calls to `config::merge` could have
-//! been re-ordered to influence the priority as each successive merge
-//! is evaluated on top of the previous.
-//!
-//! Configuration values can be retrieved with a call to `config::get` and then
-//! coerced into a type with `as_*`.
-//!
-//! ```rust
-//! # extern crate config;
-//! #
-//! # use std::env;
-//! # use config::{Config, File, FileFormat, Environment};
-//! #
-//! # fn main() {
-//! # // Create a new local configuration
-//! # let mut c = Config::new();
-//! #
-//! # // Add 'Settings.toml'
-//! # c.merge(File::new("Settings", FileFormat::Toml).required(false)).unwrap();
-//! #
-//! # // Add 'Settings.$(RUST_ENV).toml`
-//! # let name = format!("Settings.{}", env::var("env").unwrap_or("development".into()));
-//! # c.merge(File::new(&name, FileFormat::Toml).required(false)).unwrap();
-//! #
-//! # // Add environment variables that begin with APP_
-//! # c.merge(Environment::new("APP")).unwrap();
-//! // Get 'debug' and coerce to a boolean
-//! if let Some(value) = c.get("debug") {
-//! println!("{:?}", value.into_bool());
-//! }
-//!
-//! // You can use a type suffix
-//! println!("{:?}", c.get_bool("debug"));
-//! println!("{:?}", c.get_str("debug"));
-//! # }
-//! ```
-//!
-//! See the [examples](https://github.com/mehcode/config-rs/tree/master/examples) for
-//! more usage information.
-
-#[macro_use]
-extern crate nom;
-
-#[cfg(feature = "toml")]
-extern crate toml;
-
-#[cfg(feature = "json")]
-extern crate serde_json;
-
-#[cfg(feature = "yaml")]
-extern crate yaml_rust;
-
-mod value;
-mod source;
-mod file;
-mod env;
-mod path;
-mod config;
-
-pub use source::{Source, SourceBuilder};
-pub use file::{File, FileFormat};
-pub use env::Environment;
-pub use value::Value;
-pub use config::Config;