prop_reader 0.1.1

Library for reading yaml based property files.
Documentation
  • Coverage
  • 0%
    0 out of 7 items documented0 out of 6 items with examples
  • Size
  • Source code size: 21.8 MB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 1.35 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 14s Average build duration of successful builds.
  • all releases: 13s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • LSchallot/prop_reader
    0 0 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • LSchallot

prop_reader

prop_reader is a small parsing library for properties files.

Examples

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"

Usage

Add the following to your cargo.toml:

[dependencies]
prop_reader = "0.1.1"

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");

License

prop_reader is licensed under either of:

Contribution

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.