systemd-directories

Crates.iosystemd-directories
lib.rssystemd-directories
version0.1.1
sourcesrc
created_at2024-02-17 20:17:08.367623
updated_at2024-02-19 08:51:01.845642
descriptionA tiny library to retrieve systemd directories following systemd.exec(5)
homepagehttps://github.com/asasine/systemd-directories
repositoryhttps://github.com/asasine/systemd-directories
max_upload_size
id1143483
size27,056
Adam Sasine (asasine)

documentation

README

systemd-directories

A tiny library to retrieve systemd directories following systemd.exec(5).

This library targets Linux when systemd is used as the execution environment.

Crates.io Version Crates.io Documentation CI Crates.io Downloads

Examples

Standalone functions

use systemd_directories;
let runtime_dir = systemd_directories::runtime_dir();
println!("runtime directory: {:?}", runtime_dir);

SystemdDirs Struct

use systemd_directories::SystemdDirs;
let dirs = SystemdDirs::new();
let runtime_dir = dirs.runtime_dir();
println!("runtime directory: {:?}", runtime_dir);
Commit count: 0

cargo fmt