#app-dirs #port #directory #application #package #directories #komodo

appdirs

Rust crate for determining platform-specific directories

2 unstable releases

Uses old Rust 2015

0.2.0 Jul 23, 2016
0.1.0 Jul 22, 2016
Download history 384/week @ 2023-02-14 276/week @ 2023-02-21 511/week @ 2023-02-28 479/week @ 2023-03-07 365/week @ 2023-03-14 916/week @ 2023-03-21 620/week @ 2023-03-28 293/week @ 2023-04-04 310/week @ 2023-04-11 356/week @ 2023-04-18 374/week @ 2023-04-25 199/week @ 2023-05-02 477/week @ 2023-05-09 274/week @ 2023-05-16 275/week @ 2023-05-23 444/week @ 2023-05-30

1,560 downloads per month
Used in 12 crates (7 directly)

MIT/Apache

13KB
292 lines

A port of ActiveState's venerable appdirs package

.. image:: https://travis-ci.org/djc/appdirs-rs.svg :target: https://travis-ci.org/djc/appdirs-rs

.. image:: https://ci.appveyor.com/api/projects/status/1aklr7uk1av5cas7/branch/master?svg=true :target: https://ci.appveyor.com/project/djc/appdirs-rs

ActiveState_ first shared the source of their Python appdirs_ package in 2010, before which it had been developed as part of Komodo_. It has since evolved at slow intervals, and seems to be a go-to package in the Python ecosystem. This package is a Rust port of the Python code.

It exposes the same six primitives:

  • user_data_dir()
  • site_data_dir()
  • user_config_dir()
  • site_config_dir()
  • user_cache_dir()
  • user_log_dir()

Windows Vista and later, macOS and other Unices are tested. Android support should be coming soon; iOS needs some more investigation. The following documents have been guiding development:

  • Microsoft Windows knowledge base entry_
  • Apple's File System Programming Guide_
  • The XDG Base Directory Specification_

.. _ActiveState: http://www.activestate.com/ .. _appdirs: https://github.com/ActiveState/appdirs .. _Komodo: http://komodoide.com/ .. _knowledge base entry: http://support.microsoft.com/default.aspx?scid=kb;en-us;310294#XSLTH3194121123120121120120 .. _File System Programming Guide: https://developer.apple.com/library/mac/documentation/FileManagement/Conceptual/FileSystemProgrammingGuide/FileSystemOverview/FileSystemOverview.html .. _XDG Base Directory Specification: https://specifications.freedesktop.org/basedir-spec/basedir-spec-latest.html

Dependencies

~31KB