Description
(Link for convenience: https://doc.rust-lang.org/std/env/fn.home_dir.html)
Recommending a user library in favor of the standard library is not an action without precedent.
However in this instance I think it's unwise. The author of dirs
has made it clear they are not interested in providing the level and variety of support expected by users of the Rust std
library.
What I, and I suspect most of the Rust community, would prefer is fixing the behavior of std::env::home_dir
, and bringing it back from deprecation. Choosing to deprecate it and recommend another crate implies that someone could be relying on the current incorrect behavior of std::env::home_dir
. Do we have any reason to believe someone is relying on that behavior? Is there room for disagreement as to what correct behavior is? My own review of the discussion surrounding this didn't seem to ask those questions and just deprecated it seemingly without questioning that.
If nothing else, at this point it seems wise to remove the recommendation of the EDIT: Removing the recommendation has been done.dirs
crate, even if rust-lang wants to leave the deprecation intact.