Crates.io | systemd-directories |
lib.rs | systemd-directories |
version | 0.1.1 |
source | src |
created_at | 2024-02-17 20:17:08.367623 |
updated_at | 2024-02-19 08:51:01.845642 |
description | A tiny library to retrieve systemd directories following systemd.exec(5) |
homepage | https://github.com/asasine/systemd-directories |
repository | https://github.com/asasine/systemd-directories |
max_upload_size | |
id | 1143483 |
size | 27,056 |
A tiny library to retrieve systemd directories following systemd.exec(5).
This library targets Linux when systemd is used as the execution environment.
use systemd_directories;
let runtime_dir = systemd_directories::runtime_dir();
println!("runtime directory: {:?}", runtime_dir);
SystemdDirs
Structuse systemd_directories::SystemdDirs;
let dirs = SystemdDirs::new();
let runtime_dir = dirs.runtime_dir();
println!("runtime directory: {:?}", runtime_dir);