#properties #file-path #success #type #value #vec-entry

bin+lib propparse

A library to parse .properties files

4 releases

0.2.5 Oct 3, 2023
0.2.4 Apr 8, 2023
0.2.3 Mar 9, 2023
0.1.3 Mar 5, 2023

#5 in #success


Used in config-parse

MIT/Apache

17KB
432 lines

Properties Parser

Use versions 0.2.3 or upwards. Previous versions have been yanked due to bugs and incomplete parsings. Usage is still the same

A library to parse .properties files.

Types are defined in the types module.

Use the published parse_file function to parse a file from the given path. On success, it returns a Vec<Entry>, which contains all entries in the provided file.

An Entry provides the following data structure:

pub type Entry = (Key, Value);
pub type Key = Vec<String>;

pub enum Value {
    Integer(i64),
    Null,
    String(String),
}

No runtime deps