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.

https://crates.io/crates/config

Reply to this note

Please Login to reply.

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?

yeah plus it supposed to support standard locations on windows and mac too. not sure what it is on windows but something like "Application Support" on mac

Cool thanks! I need you on my speed dial 😅

anytime. send me a message or a note here and i can help where i can.

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 🤘🔥