#data #applications #location #storage

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

#36 in Filesystem

Download history 2514/week @ 2024-03-14 3509/week @ 2024-03-21 2978/week @ 2024-03-28 2584/week @ 2024-04-04 3111/week @ 2024-04-11 2681/week @ 2024-04-18 3005/week @ 2024-04-25 2444/week @ 2024-05-02 2422/week @ 2024-05-09 2866/week @ 2024-05-16 2622/week @ 2024-05-23 2788/week @ 2024-05-30 2433/week @ 2024-06-06 3151/week @ 2024-06-13 3596/week @ 2024-06-20 2283/week @ 2024-06-27

11,970 downloads per month
Used in 74 crates (22 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
~65K SLoC