12 lines
234 B
Rust
12 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/")
|
|
}
|