| Crates.io | prop_reader |
| lib.rs | prop_reader |
| version | 0.2.0 |
| created_at | 2025-08-05 23:42:41.556242+00 |
| updated_at | 2025-08-09 22:06:51.842298+00 |
| description | Library for reading yaml based property files. |
| homepage | |
| repository | https://github.com/LSchallot/prop_reader |
| max_upload_size | |
| id | 1783180 |
| size | 21,807,231 |
prop_reader is a small parsing library for properties files.
prop_reader can be used to parse properties files that are delimited with either ':' or '='. It also has built-in support for ignoring full line comments as well as in-line comments.
# Properties file that is consider valid by prop_reader
first.property: "This is a property"
second.property: "another" # Here is a comment example
# This is a full-line comment example
third="has an equals"
Add the following to your cargo.toml:
[dependencies]
prop_reader = "0.2.0"
From there, it can be used as simply as:
let properties: PropReader = PropReader::new("example.properties");
let server_ip = properties.get("server.ip");
let server_port = properties.get("server.port");
prop_reader is licensed under either of:
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.