#storage #data #directory #applications #location

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

#34 in Filesystem

Download history 2927/week @ 2024-07-21 2829/week @ 2024-07-28 2955/week @ 2024-08-04 3056/week @ 2024-08-11 2529/week @ 2024-08-18 2460/week @ 2024-08-25 2909/week @ 2024-09-01 2825/week @ 2024-09-08 3541/week @ 2024-09-15 3297/week @ 2024-09-22 6211/week @ 2024-09-29 6246/week @ 2024-10-06 8105/week @ 2024-10-13 7616/week @ 2024-10-20 8898/week @ 2024-10-27 8845/week @ 2024-11-03

33,906 downloads per month
Used in 79 crates (25 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