Configuration file format
⚓ Rust 📅 2026-05-19 👤 surdeus 👁️ 2I'd like to revisit a question I asked a while back: I'm looking for a configuration file format.
I will continue to use toml for simpler things, but I'm finding it increasingly frustrating to use toml when configurations become more complex.
I tried using ron, and I genuinely like it -- but it suffers from being a serialization format, and not a configuration file format.
The format I want to use is kdl, but the official kdl crate doesn't support a Deserialize like interface. There are other projects, like knus, which do -- but they don't support the kdl 2.0 spec, and they also generate absurdly long symbol names, causing the modern macOS linker to trigger an assertion.
The facet-kdl crate seems to be based on the official kdl crate (i.e. supports the latest kdl spec), and also support a derive macro using the facet ecosystem. So this is basically what I'm looking for .. but last time I checked, facet was still quite experimental.
Anyone using facet-kdl and can write about their experiences with it?
Are there other formats I should be aware of?
1 post - 1 participant
🏷️ Rust_feed