xdgdir
xdgdir helps you to resolves paths according to the
XDG Base Directory Specification.
- Zero I/O: The library performs no filesystem operations. It is a pure path resolver, making it fast, predictable, and suitable for any context, including async runtimes.
- Spec Compliant: Correctly handles environment variables, empty variables, and default fallbacks as defined by the spec.
- Simple API: Provides a minimal, ergonomic API for the most common use cases.
Getting started
Add xdgdir to your project's dependencies:
Usage
To get the set of directories for your specific application, use
BaseDir::new().
use BaseDir;
To get the raw, non-application-specific base directories, use
BaseDir::global().
use BaseDir;
License
This project is licensed under the MIT License.