2 unstable releases
Uses old Rust 2015
| 0.2.0 | Jul 23, 2016 |
|---|---|
| 0.1.0 | Jul 22, 2016 |
#436 in Operating systems
1,636 downloads per month
Used in 12 crates
(7 directly)
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