#ini #ini-parser #conf

cini

A small callback based library for parsing ini files

3 releases (1 stable)

1.0.0 Feb 16, 2022
0.1.1 Jul 25, 2020
0.1.0 Mar 9, 2019

#1795 in Parser implementations

Download history 4067/week @ 2024-07-21 4354/week @ 2024-07-28 4800/week @ 2024-08-04 4336/week @ 2024-08-11 4175/week @ 2024-08-18 4413/week @ 2024-08-25 4390/week @ 2024-09-01 5889/week @ 2024-09-08 8763/week @ 2024-09-15 5475/week @ 2024-09-22 5141/week @ 2024-09-29 5176/week @ 2024-10-06 5020/week @ 2024-10-13 4508/week @ 2024-10-20 4710/week @ 2024-10-27 4130/week @ 2024-11-03

19,256 downloads per month
Used in 14 crates (2 directly)

GPL-3.0 license

10KB
149 lines

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