inihx
A simple, readable INI file parser and serializer for Rust, inspired by the inih C library.
Features
- ✅ Read and write INI files
- ✅ Serde deserialization support (
HashMapor strongly typed structs) - ✅ Minimal dependencies
- ✅ Clean error reporting
- ✅ Inspired by the simplicity of the original INIH C parser
Installation
[]
= "0.1"
Example: Basic Parsing
use parse_ini_file;
Example: With Serde
use from_ini_file;
use IniParserConfig;
use Deserialize;
Embedded-Friendly (Linux-class)
While not no_std, inihx is lightweight and efficient enough for use in embedded Linux environments such as:
- Raspberry Pi
- OpenWRT / Buildroot
- Yocto-based custom boards
It avoids unnecessary dependencies and is suitable for memory-constrained systems that use std.
License
Licensed under either of:
- MIT (see
LICENSE) - BSD-3-Clause (see
LICENSE-BSD)