user_config_paths

Function user_config_paths 

Source
pub fn user_config_paths() -> Result<Vec<Utf8PathBuf>, UserConfigError>
Expand description

Returns candidate paths for the user config file, in order of priority.

On Unix/macOS, returns the XDG path:

  • $XDG_CONFIG_HOME/nextest/config.toml
  • ~/.config/nextest/config.toml (fallback if XDG_CONFIG_HOME unset)

On Windows, returns two candidates in order:

  1. Native path: %APPDATA%\nextest\config.toml
  2. XDG path: ~/.config/nextest/config.toml (for dotfiles portability)

The caller should check each path in order and use the first one that exists.