system-level helper functions for the dirs and directories crates https://dirs.dev
Find a file
2025-08-26 22:50:01 +02:00
.github/workflows Add GitHub Actions build jobs for linux, windows & macos 2023-04-03 14:00:23 +00:00
src Bump dependency windows-sys to 0.59.0 and adjust code 2025-01-11 23:03:30 +01:00
.gitignore Initial commit, code moved from dirs-rs/directories-rs 2019-05-12 22:18:10 +02:00
Cargo.toml chore(Cargo.toml): update repository link to codeberg 2025-03-27 14:44:41 +00:00
CONTRIBUTING.md update README, add CONTRIBUTING 2024-03-08 11:48:52 +00:00
LICENSE-APACHE Initial commit, code moved from dirs-rs/directories-rs 2019-05-12 22:18:10 +02:00
LICENSE-MIT Initial commit, code moved from dirs-rs/directories-rs 2019-05-12 22:18:10 +02:00
README.md Update README to reflect migration from GitHub to Codeberg 2025-08-26 22:50:01 +02:00

crates.io API documentation as-is

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.