-
-
Notifications
You must be signed in to change notification settings - Fork 16.1k
Tracking Issue for std::fs::HomeDirs (feature(fs_home_dirs)) #162082
Copy link
Copy link
Open
Labels
C-tracking-issueCategory: An issue tracking the progress of sth. like the implementation of an RFCCategory: An issue tracking the progress of sth. like the implementation of an RFCS-tracking-unimplementedStatus: The feature has not been implemented.Status: The feature has not been implemented.T-libsRelevant to the library team, which will review and decide on the PR/issue.Relevant to the library team, which will review and decide on the PR/issue.
Description
Activity
Metadata
Metadata
Assignees
Labels
C-tracking-issueCategory: An issue tracking the progress of sth. like the implementation of an RFCCategory: An issue tracking the progress of sth. like the implementation of an RFCS-tracking-unimplementedStatus: The feature has not been implemented.Status: The feature has not been implemented.T-libsRelevant to the library team, which will review and decide on the PR/issue.Relevant to the library team, which will review and decide on the PR/issue.
Feature gate:
#![feature(fs_home_dirs)]This is a tracking issue for
std::fs::HomeDirsand related functionality.Sister feature tracking issue:
std::fs::MediaDirsHomeDirsexposes common user directory paths useful for user application files. This supersedes the XDG APIs.Public API
Steps / History
(Remember to update the
S-tracking-*label when checking boxes.)std::fs::UserDirsor similar libs-team#830std::fs::{Home|Media}Dirs#158936Unresolved Questions
fn take(&mut self) -> Selfmethod would be useful for builder-API style usage of theset_*methods. T-libs-api agreed we don't. I will defer to T-libs-api here, but want to log this note.HomeDirsExtprovidefn bin_home(&self) -> Option<&Path>? The XDG spec defines a bin home path to specifically$HOME/.local/binand$XDG_BIN_HOMEis a non-standard extension.HomeDirsExtprovide access to more of the PERUSERKNOWNFOLDERIDs?PATHis handled instead of mandating:as a separator. ShouldHomeDirs::xdg()be platform agnostic or limited to the Unix extension trait?XdgDirscan iterate&Pathor if it needs to iteratePathBuflikeenv::split_pathsdoes.std::fs::MediaDirs(feature(fs_media_dirs)) #162083.Footnotes
https://std-dev-guide.rust-lang.org/feature-lifecycle/stabilization.html ↩