crates/index: walks the project with the search/VFS rules (vendor as library), parses .php files from tree-sitter outlines on a worker pool off the engine lock, updates incrementally from disk and buffers through an updater thread, caps at 200,000 files, and answers fuzzy file, class and symbol queries (nucleo-matcher, MPL-2.0 as a separate crate). Engine: index.status, goto.file, goto.class, goto.symbol; events indexProgress and indexReady drained by the pump; the index starts on project.open and is cancelled on close. Tests: unit, incremental, property (random queries and sources), engine and TCP control tests, release timing on a generated 20k-file project (3.9-4.2 s). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
26 lines
612 B
TOML
26 lines
612 B
TOML
[package]
|
|
name = "lutra-index"
|
|
description = "Symbol index and usages"
|
|
version.workspace = true
|
|
edition.workspace = true
|
|
rust-version.workspace = true
|
|
license.workspace = true
|
|
authors.workspace = true
|
|
publish.workspace = true
|
|
|
|
[package.metadata.lutra]
|
|
layer = 2
|
|
|
|
[dependencies]
|
|
ignore.workspace = true
|
|
lutra-syntax.workspace = true
|
|
lutra-text.workspace = true
|
|
nucleo-matcher = { version = "0.3.1", default-features = false, features = ["unicode-normalization", "unicode-casefold"] }
|
|
|
|
[dev-dependencies]
|
|
lutra-testkit.workspace = true
|
|
proptest.workspace = true
|
|
tempfile.workspace = true
|
|
|
|
[lints]
|
|
workspace = true
|