View all comments
Feature gate: #![feature(xdg_basedir)]
This is a tracking issue for API providing the XDG Base Directories in std::os::unix::xdg.
Public API
// in std::os::unix::xdg (new module)
pub fn data_home_dir() -> PathBuf;
pub fn config_home_dir() -> PathBuf;
pub fn state_home_dir() -> PathBuf;
pub fn cache_home_dir() -> PathBuf;
#[derive(Debug, Clone)]
pub struct XdgDirsIter { /* ... */ };
impl Iterator for XdgDirsIter { /* ... */ }
pub fn data_dirs() -> XdgDirsIter;
pub fn config_dirs() -> XdgDirsIter;
Steps / History
(Remember to update the S-tracking-* label when checking boxes.)
Unresolved Questions
View all comments
Feature gate:
#![feature(xdg_basedir)]This is a tracking issue for API providing the XDG Base Directories in
std::os::unix::xdg.std::fs::{Home|Media}Dirs#158936Public API
Steps / History
(Remember to update the
S-tracking-*label when checking boxes.)std::os::unix::xdglibs-team#805std::fs::{Home|Media}Dirs#158936Unresolved Questions
runtime_dir(doesn't have a specified default) and/orbin_home_dir(has a specified default but the environment variable override is a common non-XDG-standard extension)?