homedir
A crate to help get the home directory of any user on a system.
0.3.6
4.1M downloads/mo
#4949 most downloaded on crates.io
ljtpetersen/homedir
What this package is like to depend on
Last release 1 years ago
28 Jun 2025
Release timing varies
gaps range from 2 weeks to 10 months
Nearly every release is documented
notes for 6 of 6 stable releases
3 versions withdrawn
withdrawn after publishing
3 years old
9 releases · first in 2023
0 releases in the last 12 months
see the full history below
Release timeline
9 releases · Aug 2023 to Jun 2025Releases
latest 9-
0.3.628 Jun 2025 -
0.3.527 Jun 2025Release notes
Open source →Changed
- Updated all dependencies.
- Refactored
if letchains using Rust 1.88.0.
Release notes
Open source →Changed
- Updated all dependencies.
- Refactored
if letchains using Rust 1.88.0.
-
0.3.401 Oct 2024 -
0.3.305 Jul 2024Release notes
Open source →Fixed
- A minor unsoundness hole existed in the method used to allocate SID buffers on Windows.
Specifically, it was not checked that more than zero bytes were to be allocated,
and it was not checked that the pointer returned fromallocwas non-null.
Release notes
Open source →Fixed
- A minor unsoundness hole existed in the method used to allocate SID buffers on Windows.
Specifically, it was not checked that more than zero bytes were to be allocated,
and it was not checked that the pointer returned from
allocwas non-null.
- A minor unsoundness hole existed in the method used to allocate SID buffers on Windows.
-
0.3.205 Jul 2024 withdrawnRelease notes
Open source →Fixed
- Mistake in the documentation of the
windows-coinitializefeature.
DO NOT USE THIS RELEASE -- THERE IS A VERY SMALL AND UNLIKELY UNSOUNDNESS HOLE IN THE WINDOWS VERSION
- Mistake in the documentation of the
-
0.3.105 Jul 2024 withdrawnRelease notes
Open source →Fixed
- The crate did not compile if
windows-coinitializewas not set (on Windows).
DO NOT USE THIS RELEASE -- THERE IS A VERY SMALL AND UNLIKELY UNSOUNDNESS HOLE IN THE WINDOWS VERSION
Release notes
Open source →Fixed
- The crate did not compile if
windows-coinitializewas not set (on Windows).
- The crate did not compile if
-
0.3.005 Jul 2024 withdrawnRelease notes
Open source →Added
GetHomeInstanceon Windows, for caching purposes.- A platform-agnostic interface for
UserIdentifier.
Changed
- The variants of
GetHomeErroron Windows have been adapted to the new implementation. - The
UserIdentifiertype on Windows is now immutable. - The
windows-sysdependency has been replaced with thewindowscrate, aswindows-sys
is lacking in a required type. - The
GetHomeInstancetype on Windows to cache theIWbemServicesinterface for multiple
queries. - Renamed
get_homeandget_my_hometohomeandmy_homerespectively. - Moved and renamed
get_home_from_id,get_my_id, andget_idinto theUserIdentifiertype. - Changed the technique used to present a platform-agnostic interface in the crate root to mimic
that used in the Rust standard library.
Removed
- The
wmiandserdedependencies have been removed.
DO NOT USE THIS RELEASE -- THERE IS A VERY SMALL AND UNLIKELY UNSOUNDNESS HOLE IN THE WINDOWS VERSION
Release notes
Open source →Added
GetHomeInstanceon Windows, for caching purposes.- A platform-agnostic interface for
UserIdentifier.
Changed
- The variants of
GetHomeErroron Windows have been adapted to the new implementation. - The
UserIdentifiertype on Windows is now immutable. - The
windows-sysdependency has been replaced with thewindowscrate, aswindows-sysis lacking in a required type. - The
GetHomeInstancetype on Windows to cache theIWbemServicesinterface for multiple queries. - Renamed
get_homeandget_my_hometohomeandmy_homerespectively. - Moved and renamed
get_home_from_id,get_my_id, andget_idinto theUserIdentifiertype. - Changed the technique used to present a platform-agnostic interface in the crate root to mimic that used in the Rust standard library.
Removed
- The
wmiandserdedependencies have been removed.
-
0.2.127 Aug 2023 -
0.1.013 Aug 2023Release notes
Open source →The first release of this crate. Documentation for this version is available here.