configparser 
A simple configuration parsing utility with no dependencies built on Rust.
configparser works on a subset of ini configuration syntax.
Inspired by Python's configparser. This release is experimental, use at your own risk.
Installation
You can install this easily via cargo by including it in your Cargo.toml file like:
configparser = "0.1.1"
Usage
You can get a HashMap of type HashMap<String, HashMap<String, String>> with the Ini struct, like:
use Ini;
The Ini struct is the way to go forward and will soon have more features, such as reading from a string, insertion, deletion and variable access.
As of now, there's also a public function, to load an ini-syntax file and parse it into a hashmap. Support for this will be dropped in the near future, and will be changed into a macro when it's dropped.
use ini;
License
Licensed under either of
- MIT license (LICENSE-MIT or http://opensource.org/licenses/MIT)
- Lesser General Public license v3.0 (LICENSE-LGPL or https://www.gnu.org/licenses/lgpl-3.0.html)
at your option.
Contribution
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the LGPL-3.0 license, shall be dual licensed as above, without any additional terms or conditions.
Changelog
- 0.1.0 (yanked)
- First experimental version with only a public-facing load() function.
- 0.1.1
configparsermodule renamed toini.
- 0.2.1
Inistruct is added along with file-loading, parsing and hashmap functions. Documentation is added.
Future plans
- Support for
ini::load()will be dropped in the next major releaser per SemVer (i.e. 1.0.0)- It will be replaced with a macro for a similar functionality.
- It will be marked as deprecated in the next release.
- More functions for
Inistruct, such as reading from a string, insertion, deletion.