#properties #applications #reading #file

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

#1347 in Data structures

Download history 12/week @ 2024-02-15 29/week @ 2024-02-22 5/week @ 2024-02-29 26/week @ 2024-03-07 13/week @ 2024-03-14

78 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