Crate hini_convert
source ·Expand description
Conversion among hini and other data exchange formats.
use hini_convert::convert;
use hini_convert::formats::DataFormat;
let hini_data = "
[section]
some key = value...
";
let json_data = convert(hini_data, DataFormat::Hini, DataFormat::Json).unwrap();
assert_eq!(json_data, r#"{"section":{"some key":"value..."}}"#);
Modules
Functions
- Convert the given string data between the given formats. Errors are reported as strings.