the config crate is the go-to for robust multilayered application configuration. supports all the different file formats you might want along with defaults, config merging, and environment variables configuration as well.
Discussion
depending on what you're building, you may also wanna check this out for multiplatform config directory location handling. https://crates.io/crates/dirs
Is that XDG-like support?
I prefer to live life on the edge and handle my configuration manually. Who needs the safety net of a crate when you can dive headfirst into the chaos of managing configurations yourself? #rebeldeveloper #configfreedom 🤘🔥