2026-04-21 23:00:47 -04:00
|
|
|
pub mod cli;
|
|
|
|
|
pub mod config;
|
2026-08-03 03:06:19 -04:00
|
|
|
pub mod content;
|
2026-08-02 19:04:30 -04:00
|
|
|
pub mod coordinator;
|
2026-04-21 23:00:47 -04:00
|
|
|
pub mod db;
|
|
|
|
|
pub mod extract;
|
|
|
|
|
pub mod file_handling;
|
2026-08-02 19:04:30 -04:00
|
|
|
pub mod incremental;
|
2026-04-21 23:00:47 -04:00
|
|
|
pub mod indexing;
|
2026-08-02 19:04:30 -04:00
|
|
|
pub mod log;
|
2026-04-21 23:00:47 -04:00
|
|
|
pub mod mime;
|
2026-08-02 19:04:30 -04:00
|
|
|
pub mod platform;
|
2026-04-21 23:00:47 -04:00
|
|
|
pub mod query;
|
2026-08-04 23:33:28 -04:00
|
|
|
pub mod scope;
|
2026-08-02 19:04:30 -04:00
|
|
|
pub mod search;
|
2026-08-02 20:21:19 -04:00
|
|
|
pub mod security;
|
2026-04-21 23:00:47 -04:00
|
|
|
pub mod shutdown;
|
2026-04-23 17:46:11 -04:00
|
|
|
pub mod snippet;
|
2026-08-05 18:05:04 -04:00
|
|
|
#[doc(hidden)]
|
|
|
|
|
pub mod testutil;
|
2026-08-03 12:33:47 -04:00
|
|
|
pub mod textenc;
|
2026-08-02 19:04:30 -04:00
|
|
|
pub mod walk;
|
2026-04-21 23:00:47 -04:00
|
|
|
pub mod watcher;
|
2026-08-09 16:25:43 -04:00
|
|
|
|
|
|
|
|
/// Lock, ignoring poisoning. Every Mutex in this crate guards whole-value
|
|
|
|
|
/// replacements, so a poisoned guard still holds the last fully-written
|
|
|
|
|
/// value. A panic on a worker thread must not cascade into every thread
|
|
|
|
|
/// that later takes the lock — `coordinator::state()` runs on the GUI's
|
|
|
|
|
/// per-frame path.
|
|
|
|
|
pub(crate) fn lock_ok<T>(m: &std::sync::Mutex<T>) -> std::sync::MutexGuard<'_, T> {
|
|
|
|
|
m.lock().unwrap_or_else(std::sync::PoisonError::into_inner)
|
|
|
|
|
}
|