1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
//! ezconf
//! ======
//!
//! A library to add configuration options to your project with as little
//! boilerplate as possible. Uses `toml` as the configuration format.
//!
//! *Note*: In previous versions, values were cached. This is no longer the
//! case! If you need maximum performance, call `get` before doing anything
//! time-critical.
//!
//! # Example
//! ```
//! extern crate ezconf;
//!
//! static CONFIG: ezconf::Config = ezconf::INIT;
//!
//! fn main() {
//! CONFIG
//! .init([ezconf::Source::File("tests/test.toml")].iter())
//! .unwrap();
//!
//! let v = CONFIG.get_or::<String>("string.a", "Hello String".into());
//! println!("Value: {:?}", v);
//! }
//! ```
extern crate log;
extern crate once_cell;
pub extern crate toml;
extern crate toml_query;
pub use ;
pub use Source;