13 releases
Uses old Rust 2015
0.5.0 | Jan 11, 2025 |
---|---|
0.4.1 | Apr 30, 2023 |
0.4.0 | Mar 3, 2023 |
0.3.7 | Mar 17, 2022 |
0.3.4 | Jul 28, 2019 |
#126 in Filesystem
2,707,004 downloads per month
Used in 7,360 crates
(14 directly)
20KB
369 lines
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
- Apache License, Version 2.0 (LICENSE-APACHE or http://www.apache.org/licenses/LICENSE-2.0)
- MIT license (LICENSE-MIT or http://opensource.org/licenses/MIT)
at your option.
Dependencies
~0–8MB
~59K SLoC