Skip to main content

narsil_mcp/
lib.rs

1// Library exports for integration tests
2#![recursion_limit = "256"]
3
4// Core modules (always available)
5pub mod cache;
6pub mod callgraph;
7pub mod cfg;
8pub mod chunking;
9pub mod config;
10pub mod dead_code;
11pub mod dfg;
12pub mod embeddings;
13pub mod extract;
14pub mod hybrid_search;
15pub mod incremental;
16pub mod metrics;
17pub mod parser;
18pub mod repo;
19pub mod search;
20pub mod security_config;
21pub mod security_rules;
22pub mod supply_chain;
23pub mod symbols;
24pub mod taint;
25pub mod tool_metadata;
26pub mod type_inference;
27
28// Knowledge graph persistence (requires oxigraph)
29#[cfg(feature = "graph")]
30pub mod persistence;
31
32// Code Context Graph generation (requires graph feature)
33#[cfg(feature = "graph")]
34pub mod ccg;
35
36// Native-only modules (require tokio, octocrab, lsp, etc.)
37#[cfg(feature = "native")]
38pub mod git;
39#[cfg(feature = "native")]
40pub mod index;
41#[cfg(feature = "native")]
42pub mod lsp;
43#[cfg(feature = "native")]
44pub mod mcp;
45#[cfg(feature = "native")]
46pub mod neural;
47#[cfg(feature = "native")]
48pub mod persist;
49#[cfg(feature = "native")]
50pub mod remote;
51#[cfg(feature = "native")]
52pub mod streaming;
53#[cfg(feature = "native")]
54pub mod tool_handlers;
55
56// WASM module (only compiled when targeting wasm32)
57#[cfg(feature = "wasm")]
58pub mod wasm;