leindex 2.1.1

LeIndex MCP and semantic code search engine for AI tools and large codebases
//! Native text search: a mmap'd trigram index (the technique behind Zoekt and
//! Google Code Search) with live verification, in-process and dependency-light.
//!
//! * `index` — the on-disk index and its reader,
//! * `trigram` — case-folded trigram extraction,
//! * `plan` — regex → required-trigram formula → candidate files,
//! * `glob` — include/exclude filtering,
//! * `engine` — inventory, freshness, scanning and result windowing.
//! * `structural` — ast-grep AST-pattern matching (`structural-search` feature).
//!
//! Anything the index has not seen (files edited since, new files, whole
//! directories outside the workspace) is scanned live, so callers never need
//! an index to get a correct answer — only to get it faster.

pub mod engine;
pub mod glob;
pub mod index;
pub mod plan;
#[cfg(feature = "structural-search")]
pub mod structural;
pub mod symbols;
pub mod trigram;

pub use engine::{
    BuildStats, CaseMode, Compiled, FileResult, Hit, Query, RootOutput, RootSpec, SearchOptions,
    SearchOutput, SearchStats, build_index, invalidate_freshness, list_files, search,
};
pub use glob::FileFilter;
pub use index::{SymbolSpan, TextIndex, kind_code};
#[cfg(feature = "structural-search")]
pub use structural::{
    CompiledPattern, NO_CAP, StructuralError, StructuralFile, StructuralHit, StructuralOptions,
    StructuralOutput, StructuralStats, language_for_path, resolve_language,
    search as search_structural,
};
pub use symbols::{SymbolHit, search_symbols};