#application #data #storage #location #directory

app_dirs2

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

10 stable releases

2.3.1 Nov 18, 2020
2.3.0 Aug 6, 2020
2.2.1 Jul 9, 2020
2.0.4 Sep 20, 2019
2.0.3 Mar 27, 2018

#19 in Filesystem

Download history 2152/week @ 2020-08-10 1793/week @ 2020-08-17 2260/week @ 2020-08-24 3089/week @ 2020-08-31 2033/week @ 2020-09-07 1291/week @ 2020-09-14 734/week @ 2020-09-21 777/week @ 2020-09-28 788/week @ 2020-10-05 779/week @ 2020-10-12 942/week @ 2020-10-19 1241/week @ 2020-10-26 1043/week @ 2020-11-02 1086/week @ 2020-11-09 957/week @ 2020-11-16 969/week @ 2020-11-23

5,687 downloads per month
Used in 19 crates (9 directly)

MIT license

25KB
372 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 unmaintained and has seriously outdated dependencies. This is an 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" }

The syntax with package allows you to keep the old name in the code (use app_dirs::*), so that it's a drop-in replacement.

Dependencies

~0–1MB
~24K SLoC