leviticus 0.0.1

Leviticus is a suite of tools which help developers build robust and maintainable applications across platforms, languages, frameworks, and runtimes.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use std::path::PathBuf;

pub fn leviticus_root() -> std::path::PathBuf {
    dirs::home_dir().unwrap().join(".leviticus")
}

pub fn project_root() -> std::path::PathBuf {
    std::env::current_dir().unwrap()
}

pub fn leviticus_dir() -> PathBuf {
    dirs::home_dir()
        .expect("Could not find home directory")
        .join(".leviticus")
}