Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Recommend the home crate in env::home_dir()'s deprecation #110665

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion library/std/src/env.rs
Original file line number Diff line number Diff line change
Expand Up @@ -569,6 +569,7 @@ impl Error for JoinPathsError {
/// The 'HOME' environment variable is not standard on Windows, and may not produce
/// desired results; for instance, under Cygwin or Mingw it will return `/home/you`
/// when it should return `C:\Users\you`.
/// Consider using a crate from crates.io such as [`home`](https://crates.io/crates/home).
///
/// # Examples
///
Expand All @@ -583,7 +584,7 @@ impl Error for JoinPathsError {
#[deprecated(
since = "1.29.0",
note = "This function's behavior may be unexpected on Windows. \
Consider using a crate from crates.io instead."
Consider using a crate from crates.io such as [`home`](https://crates.io/crates/home)."
)]
#[must_use]
#[stable(feature = "env", since = "1.0.0")]
Expand Down