Decision Workspace
xdg-user vs cap-directories vs directories
Side-by-side comparison of Rust crates
41
xdg-user
growingv0.2.1
A library for accessing common user file directories according to `xdg-user-dirs`
62
cap-directories
stablev4.0.2
Capability-based standard directories for config, cache and other data
54
directories
growingv6.0.0
A tiny mid-level library that provides platform-specific standard locations of directories for config, cache and other data on Linux, Windows and macOS 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-user | cap-directories | directories | |
|---|---|---|---|
| Health Score | 41 | 62 | 54 |
| Total Downloads | 56.6K | 115.8K | 47.4M |
| 30d Downloads | 1.2K | 1.5K | 3.0M |
| Dependents | 5 | 30 | 19.4K |
| Releases | 5 | 89 | 43 |
| Last Updated | 2143d ago | 40d ago | 439d ago |
| Age | 5y 10m | 5y 7m | 8y 3m |
Health Breakdown
xdg-user
Maintenance
3
Quality
15
Community
5
Popularity
6
Documentation
12
cap-directories
Maintenance
17
Quality
18
Community
11
Popularity
6
Documentation
10
directories
Maintenance
7
Quality
19
Community
12
Popularity
8
Documentation
8
Technical Details
| xdg-user | cap-directories | directories | |
|---|---|---|---|
| Version | 0.2.1 | 4.0.2 | 6.0.0 |
| Stable (≥1.0) | ✗ No | ✓ Yes | ✓ Yes |
| License | MIT OR Apache-2.0 | Apache-2.0 WITH LLVM-exception OR Apache-2.0 OR MIT | MIT OR Apache-2.0 |
| Dependencies | 2 | 4 | 2 |
| Crate Size | 10KB | 12KB | 18KB |
| Features | 0 | 0 | 0 |
| Yanked % | 0.0% | 2.3% | 2.3% |
| Edition | 2018 | 2021 | — |
| MSRV | — | — | — |
| Owners | 1 | 2 | 1 |
Links
Quick Verdict
- •cap-directories leads with a health score of 62/100, but none of the options score above 80.
- •directories has the most downloads (47.4M), suggesting wider adoption.
- •directories is depended on by 19.4K crates — strongest ecosystem trust.
- •⚠ xdg-user, directories have not been updated in over a year.
- •xdg-user is pre-1.0 — API may change.