dirs
v6.0.0 GrowingA 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.
Quick Verdict
- ✕Not updated for 1+ year
- ✓Stable API (6.x for 10+ years)
- ✓Massive adoption (70.6K crates depend on it)
- ✓Tiny footprint (14KB, 1 deps)
- ✓Permissive license (MIT OR Apache-2.0)
Security
Deep Insights
16.0M downloads in the last 30 days (534.2K/day), up 30% from the previous period.
70.6K crates depend on dirs — it's part of the Rust ecosystem's core infrastructure. Removing it from your dependency tree would be extremely difficult.
dirs has only 1 owner despite 70.6K dependents. This is a bus-factor concern — consider the implications for long-term support.
The API has been stable (1.x) for over 10 years with 20 releases. This level of maturity means you can depend on it without worrying about breaking changes.
Only 1 direct dependencies. Lean dependency tree means faster builds and lower supply chain risk.
At 14KB, dirs is lightweight. Small crate size correlates with focused, well-scoped functionality.
Notable dependents include shellexpand, wry, tauri, tauri-build, utoipa-swagger-ui. When high-quality crates choose dirs, 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