#storage #directory #cross-platform #location #applications

app_dirs2

Put your app's data in the right place on every platform. Community-maintained project.

15 stable releases

2.5.5 Feb 15, 2023
2.5.4 Sep 20, 2022
2.5.2 Jun 25, 2022
2.4.0 Feb 15, 2022
2.0.3 Mar 27, 2018

#62 in Filesystem

Download history 5816/week @ 2024-12-18 1777/week @ 2024-12-25 3795/week @ 2025-01-01 7451/week @ 2025-01-08 4101/week @ 2025-01-15 3017/week @ 2025-01-22 3558/week @ 2025-01-29 4134/week @ 2025-02-05 4493/week @ 2025-02-12 3059/week @ 2025-02-19 3656/week @ 2025-02-26 2868/week @ 2025-03-05 3564/week @ 2025-03-12 4154/week @ 2025-03-19 3890/week @ 2025-03-26 3845/week @ 2025-04-02

16,043 downloads per month
Used in 74 crates (24 directly)

MIT license

27KB
386 lines

app_dirs2

Put your app's data in the right place on every platform

crates.io:app_dirs2

This is the up-to-date version of app_dirs

The original app_dirs crate is deprecated and unmaintained. This is a drop-in-replacement fork that keeps the crate working and up-to-date.

This is a community-maintained project, so if you find a bug or the crate is missing support for your platform, please help out.

There are no major changes planned. If you're looking for a crate with more features, check out the directories crate.

Documentation & examples

https://docs.rs/app_dirs2

Installation

Add the following to your Cargo.toml under [dependencies]:

app_dirs = { package = "app_dirs2", version = "2.5" }

The syntax with package allows you to keep the old name in the code (use app_dirs::*), so you only need to change one line in Cargo.toml.

Dependencies

~0–11MB
~50K SLoC