andybarron / preferences-rs

Read and write user-specific application data in (stable!) Rust

Home Page:https://docs.rs/preferences

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Focus on config/preferences only

andybarron opened this issue · comments

This lib should focus exclusively on config/preferences. Changes:

  • Switch to $XDG_CONFIG_HOME with default to ~/.config on *nix platforms.
  • Auto-suffix config files with .cfg (or .cfg.json, or something else entirely) to avoid naming conflicts on systems that don't specify different locations for e.g. config and data
  • Copy path logic to a new crate modeled after appdirs
  • Remove path logic from preferences-rs and depend on the new crate