Skip to content

ssh-key: use std::env::home_dir instead of home crate#415

Merged
tarcieri merged 1 commit into
masterfrom
ssh-key/use-std-instead-of-home
Nov 8, 2025
Merged

ssh-key: use std::env::home_dir instead of home crate#415
tarcieri merged 1 commit into
masterfrom
ssh-key/use-std-instead-of-home

Conversation

@tarcieri
Copy link
Copy Markdown
Member

@tarcieri tarcieri commented Nov 8, 2025

Prior to Rust 1.86, std::env::home_dir was deprecated in favor of the home crate. However, Rust 1.86 fixed the behavior of the function on Windows to use the USERPROFILE environment variable with a fallback to GetUserProfileDirectory, meaning we no longer need to use a crate for this purpose.

Also, home now has an MSRV of 1.88, which would complicate our plans to launch with an MSRV of 1.85 (see #413).

Prior to Rust 1.86, `std::env::home_dir` was deprecated in favor of the
`home` crate. However, Rust 1.86 fixed the behavior of the function on
Windows to use the `USERPROFILE` environment variable with a fallback to
`GetUserProfileDirectory`, meaning we no longer need to use a crate for
this purpose.

Also, `home` now has an MSRV of 1.88, which would complicate our plans
to launch with an MSRV of 1.85.
@tarcieri tarcieri merged commit 49e6358 into master Nov 8, 2025
30 checks passed
@tarcieri tarcieri deleted the ssh-key/use-std-instead-of-home branch November 8, 2025 16:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant