#properties #applications

app_properties

A Rust library for reading application properties from a file

3 releases

0.1.2 Apr 4, 2023
0.1.1 Mar 12, 2023
0.1.0 Mar 5, 2023

#1632 in Data structures

Download history 2/week @ 2024-07-20 5/week @ 2024-07-27 1/week @ 2024-08-10 1/week @ 2024-08-17 14/week @ 2024-09-21 6/week @ 2024-09-28 1/week @ 2024-10-05 136/week @ 2024-10-12 7/week @ 2024-10-19 8/week @ 2024-11-02

151 downloads per month
Used in pgdb_to_struct

MIT license

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