salak
Salak is a multi layered configuration loader and zero-boilerplate configuration parser, with many predefined sources.
Please refer to salak doc.
Notice
Please notice that salak-0.9.*
is totally rewrited, so the APIs may changes much, and some functions may be removed. They will be added in later version.
Quick Example
use *;
let env = builder
.set
.build
.unwrap;
let config = env..unwrap;
assert_eq!;
assert_eq!;
assert_eq!;
Trait FromEnvironment
Salak Factory
salak_factory can initialize resource based on salak
, such as redis, postgresql, etc.
use *;
use ;