#configuration #settings #config #lovepack

lpsettings

a settings library for accessing lovepack settings

4 releases

0.2.3 Dec 28, 2018
0.2.2 Dec 19, 2018
0.2.1 Dec 19, 2018
0.2.0 Dec 18, 2018

#48 in Configuration

34 downloads per month
Used in 1 crate

MIT license

22KB
446 lines


lib.rs:

Get the value. Get the value or return a default value. Get the value in the local configuration only.

Can return empty if the local file doesn't have a value but the global one does. Get the value in the global configuration only.

Can return empty if the global file doesn't have a value but the local one does. Sets the value on the global level. Sets the value on the local level. initalizes the global settings (only global)

uses the map.toml file from source to determine what should be initalized and gives descriptions.

if the user leaves the entry blank it will not be editied or created, so the existing values will stay the same or new values will not be created.

Dependencies

~5MB
~84K SLoC