iron_config
This is a config file reader for Iron framework(an web framework writen in Rust).
You can put all you settings in a file which names Iron.toml.
It will search Iron.toml by this order:
1, The value of IRON_CONFIG_FILE in environment variable.
2, ./Iron.toml
3, ./site/Iron.toml
Usage:
In you Cargo.toml:
[]
= "0.1.0"
= "*"
In you crate:
extern crate iron_config;
use IC;
extern crate lazy_static;
lazy_static!
License
- Apache License, Version 2.0, (LICENSE-APACHE or http://www.apache.org/licenses/LICENSE-2.0)
or
- MIT License (LICENSE-MIT or http://opensource.org/licenses/MIT)