dotini
dotini
is a Rust library for parsing INI files into a HashMap.
Example
use ;
Usage
Add the following to your Cargo.toml
file:
[]
= "0.1.0"
API
The INIParser
struct has the following methods:
-
from_string(content: &str) -> INIParserResult<Self>
Creates an
INIParser
instance from an INI-formatted string. -
from_file(path: &str) -> INIParserResult<Self>
Creates an
INIParser
instance from an INI-formatted file. -
into_inner(self) -> HashMap<String, HashMap<String, String>>
Returns the parsed INI data as a
HashMap<String, HashMap<String, String>>
.
License
This project is licensed under the MIT License. See the LICENSE file for more information.