bare-config
Type-safe configuration CRUD with a unified API across JSON, YAML, TOML, and Properties.
Design Goal
- Parse once at boundaries.
- Operate on typed values (
Value) through a consistent interface (ConfigContent). - Avoid introducing a separate runtime validation framework in core.
Features
- Unified
ConfigContenttrait forselect/insert/update/delete/upsert - Unified key path model (
Key,KeySegment) - Unified value model (
Value) - Format modules behind feature gates:
json,yaml,toml,properties
Quick Start
use JsonContent;
use ;
use FromStr;
let mut cfg = from_str?;
let port = cfg.select?;
assert_eq!;
cfg.upsert?;
println!;
# Ok::
License
Licensed under either:
- Apache-2.0 (LICENSE-APACHE)
- MIT (LICENSE-MIT)