#configuration #config #conf #cfg #ini

cini

A small callback based library for parsing ini files

2 releases

0.1.1 Jul 25, 2020
0.1.0 Mar 9, 2019

#376 in Parser implementations

Download history 430/week @ 2020-12-29 384/week @ 2021-01-05 475/week @ 2021-01-12 3201/week @ 2021-01-19 4592/week @ 2021-01-26 3127/week @ 2021-02-02 2648/week @ 2021-02-09 2467/week @ 2021-02-16 2362/week @ 2021-02-23 1993/week @ 2021-03-02 2297/week @ 2021-03-09 2178/week @ 2021-03-16 1980/week @ 2021-03-23 2166/week @ 2021-03-30 2062/week @ 2021-04-06 2080/week @ 2021-04-13

7,599 downloads per month
Used in 2 crates

GPL-3.0 license

9KB
149 lines


lib.rs:

cini

cini is a small callback based ini parser framework.

This crate provides a simple way to implement an ini parser. Unlike many other ini parsers which are map based solutions, cini parses inis into structs via the Ini trait. Although to do this the struct must manually implement Ini (a custom derive is probably possible but out of scope for me).

As this crate was originally created for parsing pacman's pacman.conf, the ini format exactly follows pacman's.

No runtime deps