commit | c1c0d082b1df968d8bd3effa09cd26d642b3c4ad | [log] [tgz] |
---|---|---|
author | Jeongik Cha <jeongik@google.com> | Wed Sep 27 12:20:59 2023 +0000 |
committer | Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> | Wed Sep 27 12:20:59 2023 +0000 |
tree | 1d8ee82a8ceb5276c1ae961bdb7c5b710966f685 | |
parent | 919c1e4e74e1a5907ba6e6d75e4af0821df1e725 [diff] | |
parent | d5a62418aef670f31eac5dc838083f11ba7075cc [diff] |
Import config am: 1bac1e0979 am: b663f4090b am: 886b4178e7 am: 576d980bd4 am: d5a62418ae Original change: https://android-review.googlesource.com/c/platform/external/rust/crates/config/+/2752271 Change-Id: I89d667e7e4cfba44591b3cafbec685b432693a0f Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
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.