/
githubmirror
/
ripgrep
Обзор
Документация
Войти
/
githubmirror
/
ripgrep
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
crates/core/index/enabled.rs
16 строк
434 B
Andrew Gallant
index: add some initial indexing scaffolding
22 июл 2026, 18:51
22 июл 2026, 18:51
8372866
Код
Авторство
О чём код?
use crate::flags::{HiArgs, SearchMode}; pub(crate) fn write(args: &HiArgs) -> anyhow::Result<()> { let _index = args.index_write()?; Ok(()) } pub(crate) fn read(args: &HiArgs, mode: SearchMode) -> anyhow::Result<bool> { let _index = args.index_read()?; // Do an exhaustive search for now. if args.threads() == 1 { crate::search(args, mode) } else { crate::search_parallel(args, mode) } }