Rust xdg-basedir Projects
a mid-level library that provides config/cache/data paths, following the respective conventions on Linux, macOS and WindowsProject mention: Use the XDG Base Directory Specification | news.ycombinator.com | 2023-03-23
At least for rust applications of your own, you can use the library https://github.com/dirs-dev/directories-rs to follow XDG on Linux as well as platform conventions on Mac and Windows.
a low-level library that provides config/cache/data paths, following the respective conventions on Linux, macOS and WindowsProject mention: Why the Windows Registry sucks technically (2010) | news.ycombinator.com | 2022-07-29
There are several libraries that handle directory for you in the appropriate OS-specific manner.
One Rust example being https://github.com/dirs-dev/dirs-rs
> The library provides the location of these directories by leveraging the mechanisms defined by
> the XDG base directory and the XDG user directory specifications on Linux and Redox
> the Known Folder API on Windows
> the Standard Directories guidelines on macOS
Static code analysis for 29 languages.. Your projects are multi-language. So is SonarQube analysis. Find Bugs, Vulnerabilities, Security Hotspots, and Code Smells so you can release quality code every time. Get started analyzing your projects today for free.
Rust xdg-basedir related posts