Registry / utility / xdg-basedir

xdg-basedir

JSON →
library1.0.0rscratesunverified

Library to help with the XDG basedir spec.

# Cargo.toml [dependencies] xdg-basedir = "1.0.0"
INSTALL
IMPORT
SIG · XDG-BASEDIR
X
xdg-basedir
utilityrustv1.0.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

BaseDirectories
use xdg_basedir::BaseDirectories;

Get XDG base directories for config, data, and cache.

use xdg_basedir::BaseDirectories; fn main() { let dirs = BaseDirectories::new().unwrap(); println!("Config dir: {:?}", dirs.config_dir()); }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
1.0.0latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
21 hits · last 30 days
node
20
Resources
xdg-basedir — cargo add xdg-basedir · libregistry