rebos 2.0.2

NixOS-like repeatability for any Linux distro.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#![allow(dead_code)]

use fspp::Path;

macro_rules! dirs_path {
    ($dir: ident) => {
        Path::new(&dirs::$dir().unwrap().display().to_string())
    };
}

pub fn home() -> Path {
    return dirs_path!(home_dir);
}

pub fn config() -> Path {
    return dirs_path!(config_dir);
}