Decision Workspace
xdg-home vs hjkl-xdg vs dirs
Side-by-side comparison of Rust crates
59
xdg-home
growingv1.3.0
The user's home directory as per XDG Specification
63
hjkl-xdg
experimentalv0.42.1
XDG Base Directory resolution — env-first, $HOME-fallback, uniform across platforms
62
dirs
stablev7.0.0
A tiny low-level library that provides platform-specific standard locations of directories for config, cache and other data on Linux, Windows, macOS and Redox by leveraging the mechanisms defined by the XDG base/user directory specifications on Linux, the Known Folder API on Windows, and the Standard Directory guidelines on macOS.
Core Metrics
| xdg-home | hjkl-xdg | dirs | |
|---|---|---|---|
| Health Score | 59 | 63 | 62 |
| Total Downloads | 35.7M | 12.6K | 356.9M |
| 30d Downloads | 0 | 0 | 0 |
| Dependents | 331 | 271 | 135.9K |
| Releases | 4 | 41 | 21 |
| Last Updated | 791d ago | 18d ago | 34d ago |
| Age | 3y 6m | 5m | 10y 10m |
Health Breakdown
xdg-home
Maintenance
7
Quality
20
Community
12
Popularity
8
Documentation
12
hjkl-xdg
Maintenance
19
Quality
14
Community
13
Popularity
5
Documentation
12
dirs
Maintenance
14
Quality
20
Community
12
Popularity
8
Documentation
8
Technical Details
| xdg-home | hjkl-xdg | dirs | |
|---|---|---|---|
| Version | 1.3.0 | 0.42.1 | 7.0.0 |
| Stable (≥1.0) | ✓ Yes | ✗ No | ✓ Yes |
| License | MIT | MIT | MIT OR Apache-2.0 |
| Dependencies | 2 | 3 | 1 |
| Crate Size | 4KB | 6KB | 14KB |
| Features | 0 | 0 | 0 |
| Yanked % | 0.0% | 0.0% | 0.0% |
| Edition | 2021 | 2024 | — |
| MSRV | 1.60 | 1.95 | — |
| Owners | 1 | 1 | 1 |
Links
Quick Verdict
- •hjkl-xdg leads with a health score of 63/100, but none of the options score above 80.
- •dirs has the most downloads (356.9M), suggesting wider adoption.
- •dirs is depended on by 135.9K crates — strongest ecosystem trust.
- •⚠ xdg-home has not been updated in over a year.
- •hjkl-xdg is pre-1.0 — API may change.