12 releases

Uses old Rust 2015

0.4.1 Apr 30, 2023
0.4.0 Mar 3, 2023
0.3.7 Mar 17, 2022
0.3.6 Apr 23, 2021
0.3.4 Jul 28, 2019

#167 in Filesystem

Download history 609318/week @ 2023-12-04 593897/week @ 2023-12-11 538624/week @ 2023-12-18 349757/week @ 2023-12-25 504891/week @ 2024-01-01 584088/week @ 2024-01-08 618465/week @ 2024-01-15 607498/week @ 2024-01-22 647450/week @ 2024-01-29 617959/week @ 2024-02-05 620188/week @ 2024-02-12 596465/week @ 2024-02-19 622510/week @ 2024-02-26 644225/week @ 2024-03-04 671938/week @ 2024-03-11 690681/week @ 2024-03-18

2,674,059 downloads per month
Used in 5,586 crates (10 directly)

MIT/Apache

20KB
370 lines

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

dirs-sys

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

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

Compatibility

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.

Platforms

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

Build

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

License

Licensed under either of

at your option.

Contribution

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.

Dependencies

~0–11MB
~89K SLoC