4 releases (2 breaking)
Uses new Rust 2024
| 0.3.0 | Jul 26, 2025 |
|---|---|
| 0.2.1 | Jul 26, 2025 |
| 0.2.0 |
|
| 0.1.1 | Jul 25, 2025 |
| 0.1.0 | Jul 24, 2025 |
#38 in #ini
51KB
1K
SLoC
ini-doc
A Rust library for reading and writing INI files, built on top of ini-roundtrip. It preserves comments (doc info), supports ordered sections and keys by default, and provides a convenient API for editing and serialization.
Features
- Comment Preservation: Retains and exposes all comments (doc info) in INI files.
- Ordered Sections & Keys: Uses
indexmapby default to preserve the order of sections and keys. - Easy-to-use API: Simple interface for reading, editing, and serializing INI files.
- Doc Info Preservation: Preserves as much doc (comment) information as possible.
- No Inline Comment Support: Inline comments are not supported.
Installation
Add the following to your Cargo.toml:
[dependencies]
ini-doc = "0.1"
Dependencies
License
MIT License
For more examples and API details, see the source code or documentation.
Dependencies
~1.8–2.4MB
~50K SLoC