3 releases
0.1.2 | Apr 4, 2023 |
---|---|
0.1.1 | Mar 12, 2023 |
0.1.0 | Mar 5, 2023 |
#1632 in Data structures
151 downloads per month
Used in pgdb_to_struct
5KB
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");
lib.rs
:
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:
let properties: AppProperties = AppProperties::new();
let server = properties.get("server");
let port = properties.get("port");
Dependencies
~2MB
~43K SLoC