dirs-2
v3.0.1 GrowingA tiny low-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.
Quick Verdict
- ✕Not updated for 5+ years
- ✓Stable API (3.x for 7+ years)
- ✓Trusted by 102 crates
- ✓Tiny footprint (13KB, 3 deps)
- ✓Permissive license (MIT OR Apache-2.0)
Security
Deep Insights
619 downloads in the last 30 days (21/day), up 69% from the previous period.
102 crates depend on dirs-2. Reasonable ecosystem adoption, though not yet a core dependency.
The API has been stable (1.x) for over 7 years with 2 releases. This level of maturity means you can depend on it without worrying about breaking changes.
Only 3 direct dependencies. Lean dependency tree means faster builds and lower supply chain risk.
At 13KB, dirs-2 is lightweight. Small crate size correlates with focused, well-scoped functionality.
Notable dependents include uvm_core, uvm-install2, hunter, uvm_live_platform, unity-hub. When high-quality crates choose dirs-2, it's a strong quality signal.
Health Breakdown
Recency, release consistency, active ratio
Yanked ratio, deps, size, maturity, features
Reverse deps, ownership, ecosystem
Downloads, momentum, growth trend
Docs, repo, license, metadata
Download Trend
Top Dependents
Most downloaded crates that depend on dirs-2