#parser #java #nom #properties #text

dotproperties

Parser for the Java .properties file format

1 unstable release

Uses old Rust 2015

0.1.0 Aug 10, 2017

#13 in #properties

Download history 70/week @ 2023-10-29 99/week @ 2023-11-05 86/week @ 2023-11-12 91/week @ 2023-11-19 98/week @ 2023-11-26 50/week @ 2023-12-03 100/week @ 2023-12-10 169/week @ 2023-12-17 66/week @ 2023-12-24 51/week @ 2023-12-31 83/week @ 2024-01-07 84/week @ 2024-01-14 68/week @ 2024-01-21 69/week @ 2024-01-28 111/week @ 2024-02-04 44/week @ 2024-02-11

302 downloads per month
Used in vampire_api

MIT license

81KB
393 lines

A Rust crate to parse the Java Properties file format.

The Properties file format is simple key/value text format that can be read and written by the standard library of Java. It is often used for configuration files, and also for translation files (Bundles).

The Java class that supports this format is java.util.Properties, with its methods load and store. Note that the Java class also provides the methods loadFromXML and storeToXML, but this crate does not support the XML format.

Starting from Java 9, the Properties files used as Resource Bundles are allowed to be utf-8, instead of only latin1 with unicode escapes (JEP 226). This crate does not support JEP 226.

This crate was written based on the Java 8 API reference. As far as the author knows, this crate supports reading the full Properties format with no exception. There is no support to write Properties files, yet.

Dependencies

~1MB
~19K SLoC