Crate for portable preferences files

Is there some crate which can portably manage preferences for an application? Something that knows that prefs under Linux go in ~/.something, and for Windows and Mac puts them wherever Microsoft and Apple wants you to put them this year.

If you just want the correct paths to store data, dirs can do that


Also directories adds some convenience structs/methods on top of dirs


Thanks. That's exactly what I needed.

There's also the higher level config — Rust config library // and confy — Rust config library //

1 Like

This topic was automatically closed 90 days after the last reply. We invite you to open a new topic if you have further questions or comments.