Closed nickelc closed 11 months ago
This crate supports the Base Directory spec only for unix & redox and not windows. And the home crate basically boils down to calling std::env::home_dir() for the supported targets.
unix
redox
windows
home
std::env::home_dir()
home source
#[cfg(any(unix, target_os = "redox"))] fn home_dir_inner() -> Option<PathBuf> { #[allow(deprecated)] std::env::home_dir() }
Would it not make sense to just drop it and switch back to std::env::home_dir() when the function is only deprecated because the function's behavior may be unexpected on Windows?
I think it makes more sense to return %USERPROFILE% or the result of GetUserProfileDirectory and skip %HOME% on Windows.
%USERPROFILE%
GetUserProfileDirectory
%HOME%
Yeah, if Windows support is not planned, then might as well remove the home dep.
This crate supports the Base Directory spec only for
unix
&redox
and notwindows
. And thehome
crate basically boils down to callingstd::env::home_dir()
for the supported targets.home
sourceWould it not make sense to just drop it and switch back to
std::env::home_dir()
when the function is only deprecated because the function's behavior may be unexpected on Windows?