app_properties

Crates.ioapp_properties
lib.rsapp_properties
version0.1.2
sourcesrc
created_at2023-03-05 20:53:59.039426
updated_at2023-04-04 19:24:33.228774
descriptionA Rust library for reading application properties from a file.
homepage
repositoryhttps://github.com/claudiomontchaves/app_properties
max_upload_size
id801716
size5,118
Claudio Montenegro Chaves (claudiomontchaves)

documentation

https://docs.rs/app_properties

README

app_properties

A Rust library for reading application properties from a file. The properties file, named 'app.properties', must be placed in the same folder as the binary that uses it and follows the YAML pattern.

Properties file example:

server: localhost
port: 8080

Using the lib:

[dependencies]
app_properties = "0.1.2"
use app_properties::AppProperties;

let properties: AppProperties = AppProperties::new();
let server = properties.get("server");
let port = properties.get("port");
Commit count: 9

cargo fmt