Skip to main content

seekr_code/
lib.rs

1//! # Seekr
2//!
3//! A semantic code search engine, smarter than grep.
4//!
5//! Seekr supports three search modes:
6//! - **Text regex**: High-performance regular expression matching
7//! - **Semantic vector**: ONNX-based local embedding + HNSW approximate nearest neighbor search
8//! - **AST pattern**: Function signature pattern matching via Tree-sitter
9//!
10//! 100% local execution — no data leaves your machine.
11
12pub mod config;
13pub mod error;
14
15// Core modules — will be implemented in subsequent phases
16pub mod embedder;
17pub mod index;
18pub mod parser;
19pub mod scanner;
20pub mod search;
21pub mod server;
22
23/// Current index format version.
24/// Increment this when the on-disk index format changes.
25/// v2: switched serialization from JSON to bincode for faster save/load.
26pub const INDEX_VERSION: u32 = 2;
27
28/// Seekr version string (from Cargo.toml).
29pub const VERSION: &str = env!("CARGO_PKG_VERSION");