mirror of
https://github.com/ChrisTitusTech/linutil.git
synced 2024-11-24 06:01:55 +00:00
13 lines
234 B
Rust
13 lines
234 B
Rust
|
use std::path::{Path, PathBuf};
|
||
|
|
||
|
pub fn project_root() -> PathBuf {
|
||
|
Path::new(env!("CARGO_MANIFEST_DIR"))
|
||
|
.parent()
|
||
|
.unwrap()
|
||
|
.to_path_buf()
|
||
|
}
|
||
|
|
||
|
pub fn docs() -> PathBuf {
|
||
|
project_root().join("docs/")
|
||
|
}
|