System-level helper functions for the dirs and directories crates

7 releases

0.3.4 Jul 28, 2019
0.3.3 May 30, 2019
0.2.0 May 15, 2019
0.1.0 May 12, 2019

#35 in Encoding

Download history 54386/week @ 2019-12-02 50822/week @ 2019-12-09 51587/week @ 2019-12-16 32374/week @ 2019-12-23 38609/week @ 2019-12-30 60933/week @ 2020-01-06 63099/week @ 2020-01-13 66389/week @ 2020-01-20 60135/week @ 2020-01-27 64847/week @ 2020-02-03 59205/week @ 2020-02-10 61310/week @ 2020-02-17 68444/week @ 2020-02-24 67406/week @ 2020-03-02 72098/week @ 2020-03-09 75240/week @ 2020-03-16

185,487 downloads per month
Used in 1,125 crates (3 directly)


346 lines

crates.io API documentation actively developed TravisCI status AppVeyor status License: MIT/Apache-2.0


System-level helper functions for the dirs and directories crates.

Do not use this library directly, use dirs or directories.


This crate only exists to facilitate code sharing between dirs and directories.

There are no compatibility guarantees whatsoever. Functions may change or disappear without warning or any kind of deprecation period.


This library is written in Rust, and supports Linux, Redox, macOS and Windows. Other platforms are also supported; they use the Linux conventions.

The minimal required version of Rust is 1.13.


It's possible to cross-compile this library if the necessary toolchains are installed with rustup. This is helpful to ensure a change has not broken compilation on a different platform.

The following commands will build this library on Linux, macOS and Windows:

cargo build --target=x86_64-unknown-linux-gnu
cargo build --target=x86_64-pc-windows-gnu
cargo build --target=x86_64-apple-darwin
cargo build --target=x86_64-unknown-redox


Licensed under either of

at your option.


Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.