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

3 Likes

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

2 Likes

Thanks. That's exactly what I needed.

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

1 Like