/
mishmark
/
helix
Обзор
Документация
Войти
/
mishmark
/
helix
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
CI/CD
Аналитика
Безопасность
master
xtask/src/path.rs
35 строк
667 B
Blaž Hrastnik
Add xtask highlight-check, similar to indent-check
20 июн 2026, 08:50
Не верифицирован
20 июн 2026, 08:50
e6e8215
Код
Авторство
О чём код?
use std::path::{Path, PathBuf}; pub fn project_root() -> PathBuf { Path::new(env!("CARGO_MANIFEST_DIR")) .parent() .unwrap() .to_path_buf() } pub fn book_gen() -> PathBuf { project_root().join("book/src/generated/") } pub fn runtime() -> PathBuf { project_root().join("runtime") } pub fn ts_queries() -> PathBuf { runtime().join("queries") } pub fn themes() -> PathBuf { runtime().join("themes") } pub fn tests_indent() -> PathBuf { project_root().join("tests").join("indent") } pub fn tests_highlight() -> PathBuf { project_root() .join("tests") .join("query") .join("highlights") }