propparse

Crates.iopropparse
lib.rspropparse
version0.2.5
sourcesrc
created_at2023-03-05 12:42:53.544556
updated_at2023-10-03 07:01:09.808595
descriptionA library to parse .properties files
homepagehttps://github.com/marcel-baur/properties-parser
repositoryhttps://github.com/marcel-baur/properties-parser
max_upload_size
id801312
size17,664
Marcel Baur (marcel-baur)

documentation

README

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),
}

Commit count: 44

cargo fmt