config-rs

Rust Build Status Crates.io Docs.rs

Layered configuration system for Rust applications (with strong support for 12-factor applications).

Please note that this library can not be used to write changed configuration values back to the configuration file(s)!

Usage

Feature flags

Support for custom formats

Library provides out of the box support for most renowned data formats such as JSON or Yaml. Nonetheless, it contains an extensibility point - a Format trait that, once implemented, allows seamless integration with library's APIs using custom, less popular or proprietary data formats.

See custom_file_format example for more information.

More

See the documentation or examples for more usage information.

License

Licensed under either of

at your option.

Join libs.tech

...and unlock some superpowers

GitHub

We won't share your data with anyone else.