commit | 1bac1e09799a9826e7fa0a24d651ec000be4f5bf | [log] [tgz] |
---|---|---|
author | Jeongik Cha <jeongik@google.com> | Thu Sep 14 16:31:23 2023 +0900 |
committer | Jeongik Cha <jeongik@google.com> | Wed Sep 27 03:09:05 2023 +0900 |
tree | 1d8ee82a8ceb5276c1ae961bdb7c5b710966f685 | |
parent | 919c1e4e74e1a5907ba6e6d75e4af0821df1e725 [diff] |
Import config Bug: 277909042 Test: build Change-Id: I218865d5f55426431158e3eb259d6c085bda0fb7
Layered configuration system for Rust applications (with strong support for 12-factor applications).
redis.port
) and subscript operators ( databases[0].name
)Please note that this library can not be used to write changed configuration values back to the configuration file(s)!
[dependencies] config = "0.13.1"
ini
- Adds support for reading INI filesjson
- Adds support for reading JSON filesyaml
- Adds support for reading YAML filestoml
- Adds support for reading TOML filesron
- Adds support for reading RON filesjson5
- Adds support for reading JSON5 filesLibrary 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_format example for more information.
See the documentation or examples for more usage information.
We currently support Rust 1.56.0 and newer.
config-rs is primarily distributed under the terms of both the MIT license and the Apache License (Version 2.0).
See LICENSE-APACHE and LICENSE-MIT for details.