on f1b9c19 help sign in
helix/xtask/src/path.rs
24 lines 484 B history raw
1use std::path::{Path, PathBuf};
3pub fn project_root() -> PathBuf {
4 Path::new(env!("CARGO_MANIFEST_DIR"))
5 .parent()
6 .unwrap()
7 .to_path_buf()
8}
10pub fn book_gen() -> PathBuf {
11 project_root().join("book/src/generated/")
14pub fn ts_queries() -> PathBuf {
15 project_root().join("runtime/queries")
18pub fn lang_config() -> PathBuf {
19 project_root().join("languages.toml")
22pub fn themes() -> PathBuf {
23 project_root().join("runtime/themes")