| Crates.io | app_properties |
| lib.rs | app_properties |
| version | 0.1.2 |
| created_at | 2023-03-05 20:53:59.039426+00 |
| updated_at | 2023-04-04 19:24:33.228774+00 |
| description | A Rust library for reading application properties from a file. |
| homepage | |
| repository | https://github.com/claudiomontchaves/app_properties |
| max_upload_size | |
| id | 801716 |
| size | 5,118 |
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.
server: localhost
port: 8080
[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");